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

Merged
merged 2 commits into from
Jul 7, 2025
Merged

Adopt SuspendingClock.systemEpoch. #1202

merged 2 commits into from
Jul 7, 2025

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

@grynspan grynspan merged commit 3c64d2b into main Jul 7, 2025
3 checks passed
@grynspan grynspan deleted the jgrynspan/systemepoch branch July 7, 2025 16:19
Copy link
Contributor

@stmontgomery stmontgomery left a comment

Choose a reason for hiding this comment

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

LGTM, thanks

grynspan added a commit that referenced this pull request Jul 7, 2025
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.

### Checklist:

- [x] Code and documentation should follow the style of the [Style
Guide](https://github.com/apple/swift-testing/blob/main/Documentation/StyleGuide.md).
- [x] If public symbols are renamed or modified, DocC references should
be updated.
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.

2 participants