File tree Expand file tree Collapse file tree 4 files changed +5
-3
lines changed
stdlib/public/Concurrency Expand file tree Collapse file tree 4 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -77,6 +77,7 @@ public protocol Clock<Duration>: Sendable {
77
77
#endif
78
78
}
79
79
80
+ #if !SWIFT_STDLIB_TASK_TO_THREAD_MODEL_CONCURRENCY
80
81
extension Clock {
81
82
// The default implementation works by creating a trampoline and calling
82
83
// the run() method.
@@ -96,6 +97,7 @@ extension Clock {
96
97
fatalError ( " \( Self . self) does not implement run(_:at:tolerance:). " )
97
98
}
98
99
}
100
+ #endif // !SWIFT_STDLIB_TASK_TO_THREAD_MODEL_CONCURRENCY
99
101
100
102
@available ( StdlibDeploymentTarget 5 . 7 , * )
101
103
extension Clock {
Original file line number Diff line number Diff line change @@ -212,7 +212,7 @@ extension ContinuousClock.Instant: InstantProtocol {
212
212
}
213
213
}
214
214
215
- #if !$Embedded
215
+ #if !$Embedded && !SWIFT_STDLIB_TASK_TO_THREAD_MODEL_CONCURRENCY
216
216
@available ( StdlibDeploymentTarget 6 . 2 , * )
217
217
extension ContinuousClock {
218
218
Original file line number Diff line number Diff line change @@ -47,7 +47,7 @@ internal func donateToGlobalExecutor(
47
47
@available ( SwiftStdlib 6 . 2 , * )
48
48
@_silgen_name ( " swift_task_getMainExecutorImpl " )
49
49
internal func getMainExecutor( ) -> UnownedSerialExecutor {
50
- return _getMainExecutorAsSerialExecutor ( )
50
+ return unsafe _getMainExecutorAsSerialExecutor( )
51
51
}
52
52
53
53
@available ( SwiftStdlib 6 . 2 , * )
Original file line number Diff line number Diff line change @@ -190,7 +190,7 @@ extension SuspendingClock.Instant: InstantProtocol {
190
190
}
191
191
}
192
192
193
- #if !$Embedded
193
+ #if !$Embedded && !SWIFT_STDLIB_TASK_TO_THREAD_MODEL_CONCURRENCY
194
194
@available ( StdlibDeploymentTarget 6 . 2 , * )
195
195
extension SuspendingClock {
196
196
You can’t perform that action at this time.
0 commit comments