Expand description
§Scoped Async Tasks
This module provides a mechanism for spawning scoped asynchronous tasks.
Unlike standard tokio::spawn, these tasks can borrow from the surrounding
environment (non-'static futures) because they are guaranteed to complete
before the scope exits.
Structs§
- Scope
- A handle passed to the closure in
scope, allowing the spawning of scoped tasks and interaction with the set.
Enums§
- Join
Error - Errors that can occur when joining a scoped task.
Functions§
- scope
- Creates a scope for spawning non-
'staticfutures.