Skip to content

Commit a0c4602

Browse files
_runtime(multithreaded) is only available in Swift 6.0 and later
1 parent 4ee27e6 commit a0c4602

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/JavaScriptEventLoop/JavaScriptEventLoop.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ public final class JavaScriptEventLoop: SerialExecutor, @unchecked Sendable {
6161
return _shared
6262
}
6363

64-
#if _runtime(_multithreaded)
64+
#if compiler(>=6.0) && _runtime(_multithreaded)
6565
// In multi-threaded environment, we have an event loop executor per
6666
// thread (per Web Worker). A job enqueued in one thread should be
6767
// executed in the same thread under this global executor.

0 commit comments

Comments
 (0)