Expand description
Utilities for working with async.
Re-export of the [sycamore_futures
] crate.
Structs§
- Represents a new suspense scope. This is created by a call to
create_suspense_scope
. - A guard that keeps a suspense scope suspended until it is dropped.
Functions§
- Waits until all suspense task in current scope are completed.
- Create a new suspense scope that is detatched from the rest of the suspense hierarchy.
- Calls the given function and registers all suspense tasks.
- Creates a new task that is to be tracked by the suspense system.
- If running on
wasm32
target, does nothing. Otherwise creates a newtokio::task::LocalSet
scope. - Spawns a
!Send
future. - Spawns a
!Send
future on the current scope. - Returns a signal representing whether we are currently loading this suspense or not.
- Returns whether any suspense scope is current loading.