Initializerjavascriptkit 0.27.0JavaScriptEventLoop
init(timeout:checkInterval:)
WebWorkerDedicatedExecutor.swift:43- iOS
- 18.0+
- macOS
- 15.0+
- tvOS
- 18.0+
- visionOS
- 2.0+
- watchOS
- 11.0+
init(timeout: Duration = .seconds(3), checkInterval: Duration = .microseconds(5)) async throws
Parameters
- timeout
The maximum time to wait for all worker threads to be started. Default is 3 seconds.
- checkInterval
The interval to check if all worker threads are started. Default is 5 microseconds.
Throws
An error if any worker thread fails to initialize within the timeout period.