Skip to main contentModule prelude
Source - AbortHandle
- A handle to an
Abortable task. - JoinError
- Task failed to execute to completion.
- JoinHandle
- An owned permission to join on a task (await its termination).
- Mutex
- An asynchronous
Mutex-like type. - MutexGuard
- A handle to a held
Mutex. The guard can be held across any .await point
as it is Send. - RwLock
- An asynchronous reader-writer lock.
- RwLockReadGuard
- RAII structure used to release the shared read access of a lock when
dropped.
- RwLockWriteGuard
- RAII structure used to release the exclusive write access of a lock when
dropped.
- abortable
- Creates a new
Abortable future and an AbortHandle which can be used to stop it. - sleep
- Waits until
duration has elapsed. - spawn
- Spawns a new asynchronous task, returning a
JoinHandle for it. - spawn_blocking
- Runs the provided closure on a thread where blocking is acceptable.
- spawn_local
- Spawns a
!Send future on the current LocalSet or LocalRuntime. - timeout_fut
- Requires a
Future to complete before the specified duration has elapsed.