Expand description
Built-in executors and related tools.
Structs§
- Blocking
Stream - An iterator which blocks on values from a stream until they become available.
- Enter
- Represents an executor context.
- Enter
Error - An error returned by
enter
if an execution scope has already been entered. - Join
Handle - The type of future returned from the
ThreadPool::spawn
function, which proxies the futures running on the thread pool. - Local
Executor - A handle to a
LocalPool
that implementsExecutor
. - Local
Pool - A single-threaded task pool.
- Spawn
- A future representing the completion of task spawning.
- Spawn
With Handle - A future representing the completion of task spawning, yielding a
JoinHandle
to the spawned task. - Thread
Pool - A general-purpose thread pool for scheduling asynchronous tasks.
- Thread
Pool Builder - Thread pool configuration object.
Functions§
- block_
on - Run a future to completion on the current thread.
- block_
on_ stream - Turn a stream into a blocking iterator.
- enter
- Marks the current thread as being within the dynamic extent of an executor.
- spawn
- Spawn a task onto the default executor.
- spawn_
with_ handle - Spawn a task onto the default executor, yielding a
JoinHandle
to the spawned task.