Skip to content

Adopt SuspendingClock.systemEpoch. #1202

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

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open

Conversation

grynspan
Copy link
Contributor

@grynspan grynspan commented Jul 4, 2025

This PR adopts the new systemEpoch API added with SE-0473.

This API is back-deployed, so we don't need availability annotations on Darwin. It is not available with the 6.1 toolchain though, so the old unsafeBitCast() calls remain if building from source with a 6.1 toolchain.

Checklist:

  • Code and documentation should follow the style of the Style Guide.
  • If public symbols are renamed or modified, DocC references should be updated.

This PR adopts the new `systemEpoch` API added with
[SE-0473](https://github.com/swiftlang/swift-evolution/blob/main/proposals/0473-clock-epochs.md).

This API is back-deployed, so we don't need availability annotations on Darwin.
It is not available with the 6.1 toolchain though, so the old `unsafeBitCast()`
calls remain if building from source with a 6.1 toolchain.
@grynspan grynspan added this to the Swift 6.x (main) milestone Jul 4, 2025
@grynspan grynspan self-assigned this Jul 4, 2025
@grynspan grynspan added the enhancement New feature or request label Jul 4, 2025
@grynspan
Copy link
Contributor Author

grynspan commented Jul 4, 2025

@swift-ci test

@grynspan
Copy link
Contributor Author

grynspan commented Jul 4, 2025

@swift-ci test

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.

1 participant