Skip to content

Commit f78690b

Browse files
committed
[Concurrency] ContinuousClock and SuspendingClock are Sendable.
1 parent 663865c commit f78690b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

stdlib/public/Concurrency/ContinuousClock.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ import Swift
2121
///
2222
/// This clock is suitable for high resolution measurements of execution.
2323
@available(SwiftStdlib 5.7, *)
24-
public struct ContinuousClock {
24+
public struct ContinuousClock: Sendable {
2525
/// A continuous point in time used for `ContinuousClock`.
2626
public struct Instant: Codable, Sendable {
2727
internal var _value: Swift.Duration

stdlib/public/Concurrency/SuspendingClock.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ import Swift
2121
///
2222
/// This clock is suitable for high resolution measurements of execution.
2323
@available(SwiftStdlib 5.7, *)
24-
public struct SuspendingClock {
24+
public struct SuspendingClock: Sendable {
2525
public struct Instant: Codable, Sendable {
2626
internal var _value: Swift.Duration
2727

0 commit comments

Comments
 (0)