Expand description
A single-threaded async executor.
Structs§
- Async
Executor - An asynchronous executor that can be used to run multiple async tasks. All user code runs in a single thread becasue the v5 is single threaded. Blocked tasks will stop running and wait to be unblocked while also not blocking the main thread.
- Async
Task - The tasks used by
AsyncExecutor. - Atomic
I8State - An atomic that stores a given state in a
$raw_type - Atomic
I16State - An atomic that stores a given state in a
$raw_type - Atomic
I32State - An atomic that stores a given state in a
$raw_type - Atomic
I64State - An atomic that stores a given state in a
$raw_type - Atomic
U8State - An atomic that stores a given state in a
$raw_type - Atomic
U16State - An atomic that stores a given state in a
$raw_type - Atomic
U32State - An atomic that stores a given state in a
$raw_type - Atomic
U64State - An atomic that stores a given state in a
$raw_type - Executor
Handle - A handle to an executor allowing submission of tasks.
- Local
Executor Handle - A handle to an executor allowing submission of tasks. This handle may not be sent across threads but can submit
!Sendfutures. - Multi
Complete Future - A version of
CompleteFuturethat can be cloned to have multiple futures pointing to the same “complete-ness”. - Multi
Complete Future Handle - A handle to a
MultiCompleteFuture. - Sleep
Future - The future given by
SleepFutureRunner. - Sleep
Future Runner - Runs asynchronous sleep functions by launching a separate handler thread. Each new instance of this spawns a thread.
- Sleep
Message - Internal message that the queue in
SleepFutureRunnercontains.
Functions§
- polling_
future - Polls a function (
function) until it returns true. Sleeps between polls forsleep_duration. - spawn_
blocking - Returns a future that will contain the result of
function. Function will be called in another thread as to not block the main thread. Infallible version oftry_spawn_blocking. - try_
spawn_ blocking - Returns a future that will contain the result of
function. Function will be called in another thread as to not block the main thread. Fallible version ofspawn_blocking.
Type Aliases§
- Async
Executor Std - An async executor that uses std functions.