-
Notifications
You must be signed in to change notification settings - Fork 95
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
present Time & Clock in kernel #711
Conversation
* This is the pure equivalent of Java's `System.currentTimeMillis`, | ||
* or of `CLOCK_REALTIME` from Linux's `clock_gettime()`. | ||
*/ | ||
def realTime(unit: TimeUnit): F[Long] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If tofu will have its own Clock typeclass, so why should it be exactly like cats one? Is it possible to fix some of the design problems e.g. not having information on units of measurement in the signature (ce3 style with FiniteDuration for example (but rather something better))?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You have some specific design in mind?
@@ -58,25 +55,6 @@ object Atom { | |||
} | |||
} | |||
|
|||
final case class AtomByRef[F[_], A](ref: Ref[F, A]) extends Atom[F, A] { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These changes were in #709, so I guess there is something wrong with branches 🤔
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also based on #709