Skip to content

Commit 5b5f486

Browse files
committed
[Concurrency] Use the correct Dispatch clock.
This caused a hard-to-reproduce bug where a machine that had slept for a long time would take a very long time to run some of the tests because we'd be scheduling Dispatch executions with the wrong clock. rdar://148337712
1 parent 8c8ed34 commit 5b5f486

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

stdlib/public/Concurrency/DispatchExecutor.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -154,8 +154,8 @@ protocol DispatchExecutorProtocol: Executor {
154154

155155
/// An enumeration identifying one of the Dispatch-supported clocks
156156
enum DispatchClockID: CInt {
157-
case suspending = 1
158-
case continuous = 2
157+
case continuous = 1
158+
case suspending = 2
159159
}
160160

161161
@available(SwiftStdlib 6.2, *)

0 commit comments

Comments
 (0)