Skip to content

Commit

Permalink
_runtime(multithreaded) is only available in Swift 6.0 and later
Browse files Browse the repository at this point in the history
  • Loading branch information
kateinoigakukun committed Jun 27, 2024
1 parent 801b252 commit 8364fe1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sources/JavaScriptEventLoop/JavaScriptEventLoop.swift
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ public final class JavaScriptEventLoop: SerialExecutor, @unchecked Sendable {
return _shared
}

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

0 comments on commit 8364fe1

Please sign in to comment.