Skip to content
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

Merged
merged 8 commits into from
Jul 20, 2021
Merged

present Time & Clock in kernel #711

merged 8 commits into from
Jul 20, 2021

Conversation

Odomontois
Copy link
Member

@Odomontois Odomontois commented Jul 16, 2021

Also based on #709

* 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]
Copy link
Member

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))?

Copy link
Member Author

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] {
Copy link
Member

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 🤔

Copy link
Member Author

@Odomontois Odomontois Jul 20, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

#711 and #710 just following up PRs. They needed to be based on #709 but it was unwise to do everything in a single PR

@Odomontois Odomontois merged commit a36ec07 into master Jul 20, 2021
@mergify mergify bot deleted the time-clock branch July 20, 2021 15:35
@catostrophe catostrophe added the enhancement New feature or request label Sep 11, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants