Skip to main content

Module task

Module task 

Source
Expand description

Utilities for working with asynchronous tasks.

Functions§

spawn
Spawns a thread-safe Future.
spawn_local
Spawns a Future that cannot be sent across threads.
spawn_local_scoped
Calls Executor::spawn_local, but ensures that the task runs under the current reactive Owner and observer.
spawn_local_scoped_with_cancellation
Calls Executor::spawn_local, but ensures that the task runs under the current reactive Owner and observer.
tick
Waits until the next “tick” of the current async executor.