Module runtime

Module runtime 

Source
Expand description

Runtime (wasm32 vs native) differences handling Abstraction over an executor so we can spawn tasks under WASM the same way we do usually.

Structs§

Duration
A Duration type to represent a span of time, typically used for system timeouts.
Elapsed
Errors returned by Timeout.
Instant
A measurement of a monotonically nondecreasing clock. Opaque and useful only with Duration.
JoinError
Task failed to execute to completion.
JoinHandle
An owned permission to join on a task (await its termination).

Functions§

block_in_place
block_on
sleep
Waits until duration has elapsed.
sleep_until
Waits until deadline is reached.
spawn
timeout
Requires a Future to complete before the specified duration has elapsed.