Skip to content

Adopt SuspendingClock.systemEpoch.#1202

Merged
grynspan merged 2 commits into
mainfrom
jgrynspan/systemepoch
Jul 7, 2025
Merged

Adopt SuspendingClock.systemEpoch.#1202
grynspan merged 2 commits into
mainfrom
jgrynspan/systemepoch

Conversation

@grynspan

@grynspan grynspan commented Jul 4, 2025

Copy link
Copy Markdown
Contributor

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

grynspan commented Jul 4, 2025

Copy link
Copy Markdown
Contributor Author

@swift-ci test

@grynspan

grynspan commented Jul 4, 2025

Copy link
Copy Markdown
Contributor Author

@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

@stmontgomery stmontgomery left a comment

Copy link
Copy Markdown
Contributor

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