Skip to main content

Module tasks

Module tasks 

Source
Available on crate feature tasks only.
Expand description

Re-exported from tasks.

Modules§

for_each_orderedrayon
Lock-free ordered parallel iterator extension trait.
lazy
A lazily-resolved handle to a value computed on a background thread.
metrics
Task Executor Metrics
poolrayon
Additional helpers for executing tracing calls
runtime
Centralized management of async and parallel execution.
shutdown
Helper for shutdown signals
utils
Task utility functions.

Macros§

once
Runs the given closure exactly once per call site.

Structs§

LazyHandle
Handle to a value computed on a background thread.
PanickedTaskError
Error with the name of the task that panicked and an error downcasted to string, if possible.
RayonConfigrayon
Configuration for the rayon thread pools.
Runtime
A cheaply cloneable handle to the runtime resources.
RuntimeBuilder
Builder for constructing a Runtime.
RuntimeConfig
Configuration for building a Runtime.
TaskManager
Monitors critical tasks for panics and manages graceful shutdown.
Worker
Per-thread state container for a WorkerPool.
WorkerPool
A rayon thread pool with per-thread Worker state.

Enums§

RuntimeBuildError
Error returned when RuntimeBuilder::build fails.
TokioConfig
Configuration for the tokio runtime.

Traits§

ForEachOrdered
Extension trait for IndexedParallelIterator that streams results to a sequential consumer in index order.

Functions§

spawn_os_thread
Spawns an OS thread with the current tokio runtime context propagated.
spawn_scoped_os_thread
Spawns a scoped OS thread with the current tokio runtime context propagated.

Type Aliases§

TaskExecutor
A TaskExecutor is now an alias for Runtime.