Class
JavaScriptEventLoop
public final class JavaScriptEventLoop: SerialExecutor, @unchecked Sendable
Relationships
Conforms To
@unchecked SendableSerialExecutor
Properties
Methods
installGlobalExecutor()
public static func installGlobalExecutor()
Set JavaScript event loop based executor to be the global executor Note that this should be called before any of the jobs are created. This installation step will be unnecessary after the custom-executor will be introduced officially. See also: https://github.com/rjmccall/swift-evolution/blob/custom-executors/proposals/0000-custom-executors.md#the-default-global-concurrent-executor
enqueue(_:)
public func enqueue(_ job: UnownedJob)
asUnownedSerialExecutor()
public func asUnownedSerialExecutor() -> UnownedSerialExecutor