Module task

Source

Structs§

ChildTask
Represents a children task that will cancel when dropped.
Cooperative
A cooperative future
JoinHandle
A handle for (optionally) joining a spawned task.
PlatformBoxFuture
RuntimeHandle
Represents a handle to the platform specific runtime

Enums§

JoinError

Functions§

block_in_place
Runs a blocking function without blocking the executor.
make_native_multithreaded_runtime
This builds a Tokio multithreaded runtime for use in Ambient native contexts.
spawn
Spawns a new background task in the current runtime
spawn_blocking
Spawns a task such that blocking is accepted
spawn_local
Spawn a non-send future by sending a constructor to a worker thread.
wasm_nonsend
Wraps a constructor function to send and construct the future on a worker thread