Structs§
- Builder
- Thread factory, which can be used in order to configure the properties of a new thread.
- Join
Handle - An owned permission to join on a thread (block on its termination).
- Scope
- A scope to spawn scoped threads in.
- Scoped
Join Handle - An owned permission to join on a scoped thread (block on its termination).
- Thread
- A handle to a thread.
- Thread
Id - A unique identifier for a running thread.
Functions§
- available_
parallelism - current
- Gets a handle to the thread that invokes it.
- get_
wasm_ bindgen_ shim_ script_ path - Extracts path of the
wasm_bindgen
generated .js shim script. - get_
worker_ script - Generates worker entry script as URL encoded blob
- is_
web_ worker_ thread - scope
- Create a scope for spawning scoped threads.
- sleep
- Puts the current thread to sleep for at least the specified amount of time.
- spawn
- Spawns a new thread, returning a JoinHandle for it.
- wasm_
thread_ entry_ point - Entry point for web workers