Expand description
Builder API to configure and create a runtime.
Modules§
- cancel
- Cancellation APIs for tasks built on top of the global task tree. Provides APIs for programmatic task cancellation.
- runtime
- Builder API to configure and create a runtime.
- spawn
- Utilities to spawn new tasks. Provides functions and types for spawning new tasks onto the runtime.
Structs§
- Builder
- Runtime Builder API.
- Runtime
- A
ringoloruntime instance. - Task
Metadata - A set of string tags used to identify a task.
- Task
Opts - Configuration options for a new task.
Enums§
- AddMode
- Instructs the scheduler if a task should be added at front or back of the run queue.
- OnCleanup
Error - Defines the runtime’s policy for handling I/O cleanup failures.
- Orphan
Policy - Defines the runtime’s structured concurrency policy.
Functions§
- block_
on - We
block_onon a special future that we refer to as theroot_future. It is guaranteed to be polled on the current thread, and is central in deciding how and when the runtime returns. This is why it has looser bounds (!Send and !Sync). - recursive_
cancel_ all - Recursively cancels all child tasks of the current task.
- recursive_
cancel_ all_ leaves - Recursively cancels all leaf tasks within the current task’s hierarchy.
- recursive_
cancel_ all_ metadata - Recursively cancels tasks in the hierarchy that match all metadata tags.
- recursive_
cancel_ all_ orphans - Cancels all tasks that have been “orphaned.”
- recursive_
cancel_ any_ metadata - Recursively cancels tasks in the hierarchy that match any metadata tag.
- spawn
- Spawns a new asynchronous task with default options.
- spawn_
builder - Creates a new SpawnBuilder for configuring and spawning a task.