Crate wasm_thread

Source

Structs§

Builder
Thread factory, which can be used in order to configure the properties of a new thread.
JoinHandle
An owned permission to join on a thread (block on its termination).
Scope
A scope to spawn scoped threads in.
ScopedJoinHandle
An owned permission to join on a scoped thread (block on its termination).
Thread
A handle to a thread.
ThreadId
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

Type Aliases§

Result
A specialized Result type for threads.