Skip to content

Commit ad5b76a

Browse files
committed
[Concurrency] Another missing availability annotation.
We need to annotate the `timestamp()` function for watchOS (apparently not for macOS for some reason). rdar://141348916
1 parent ed08858 commit ad5b76a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

stdlib/public/Concurrency/TaskSleepDuration.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
import Swift
1414

1515
#if !SWIFT_STDLIB_TASK_TO_THREAD_MODEL_CONCURRENCY
16+
@available(SwiftStdlib 5.7, *)
1617
fileprivate func timestamp<C: Clock>(for instant: C.Instant, clock: C)
1718
-> (clockID: _ClockID, seconds: Int64, nanoseconds: Int64) {
1819
var clockID: _ClockID

0 commit comments

Comments
 (0)