Skip to content

Remove ACLK::Monotonic#667

Merged
Blacksmoke16 merged 2 commits intomasterfrom
remove-monotonic-clock
Jan 10, 2026
Merged

Remove ACLK::Monotonic#667
Blacksmoke16 merged 2 commits intomasterfrom
remove-monotonic-clock

Conversation

@Blacksmoke16
Copy link
Member

@Blacksmoke16 Blacksmoke16 commented Jan 10, 2026

Context

Time.monotonic has been deprecated in Crystal stdlib. The new Time.instant API doesn't, for good reason, doesn't have any overlap with Time, thus making it somewhat incompatible with ACLK::Interface. Instead of trying to hack in some solution using Time.instant, this PR just removes the monotonic clock.

If/when there is a usecase that comes up that would benefit from it. We could explore our options at that point.

Changelog

  • Remove ACLK::Monotonic
  • Update console usages to use ACLK::Native

Before merging, remember to add the athena-framework/athena prefix to the PR number in the PR title

@Blacksmoke16 Blacksmoke16 added breaking component:clock kind:maintenance Keeping an existing feature functional labels Jan 10, 2026
@codecov
Copy link

codecov bot commented Jan 10, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ All tests successful. No failed tests found.

Components Coverage Δ
clock 100.00% <ø> (ø)
console 97.21% <100.00%> (ø)
dependency_injection 89.95% <ø> (ø)
dotenv 98.41% <ø> (ø)
event_dispatcher 95.41% <ø> (ø)
framework 97.44% <ø> (ø)
http 98.94% <ø> (ø)
http_kernel 95.27% <ø> (ø)
image_size 96.63% <ø> (ø)
mercure 94.94% <ø> (ø)
mime 99.37% <ø> (ø)
negotiation 97.93% <ø> (ø)
routing 98.36% <ø> (ø)
serializer 95.86% <ø> (ø)
spec 94.06% <ø> (ø)
validator 95.85% <ø> (ø)

📢 Thoughts on this report? Let us know!

@Blacksmoke16 Blacksmoke16 merged commit 54eec6c into master Jan 10, 2026
16 checks passed
@Blacksmoke16 Blacksmoke16 deleted the remove-monotonic-clock branch January 10, 2026 17:24
PallasAthenaie pushed a commit to athena-framework/clock that referenced this pull request Jan 10, 2026
## Context

`Time.monotonic` has been
[deprecated](crystal-lang/rfcs#15) in Crystal
stdlib. The new `Time.instant` API doesn't, for good reason, doesn't
have any overlap with `Time`, thus making it somewhat incompatible with
`ACLK::Interface`. Instead of trying to hack in some solution using
`Time.instant`, this PR just removes the monotonic clock.

If/when there is a usecase that comes up that would benefit from it. We
could explore our options at that point.

## Changelog

- Remove `ACLK::Monotonic`
- Update `console` usages to use `ACLK::Native`
PallasAthenaie pushed a commit to athena-framework/console that referenced this pull request Jan 10, 2026
## Context

`Time.monotonic` has been
[deprecated](crystal-lang/rfcs#15) in Crystal
stdlib. The new `Time.instant` API doesn't, for good reason, doesn't
have any overlap with `Time`, thus making it somewhat incompatible with
`ACLK::Interface`. Instead of trying to hack in some solution using
`Time.instant`, this PR just removes the monotonic clock.

If/when there is a usecase that comes up that would benefit from it. We
could explore our options at that point.

## Changelog

- Remove `ACLK::Monotonic`
- Update `console` usages to use `ACLK::Native`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Development

Successfully merging this pull request may close these issues.

1 participant