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
. - Join
Error - Task failed to execute to completion.
- Join
Handle - 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.