tasks
module · ferroui-system · v0.5.0
module tasks
System.Threading.Tasks: tasks, their completion sources, and the running of futures on the
thread that started them (docs/porting/reactive.md, section 5.8). The futures run on the executor
of the crate (crate::task).
Since 0.5.0 the tasks are the types of crate::task: run (Task.Run) gives a
Shared of its result, and canceled and TaskWorkError stay.
Task, TaskCompletionSource, TaskStatus, ContinuationId, TaskCanceledError,
spawn_local, block_on, run_pending_wakes, set_thread_poster and ThreadPoster are
deprecated wrappers over them, with their behaviour (docs/idiomatic-rust-async.md, section 4).
Contents
canceled— functionrun— functionTaskWorkError— structblock_on— functionrun_pending_wakes— functionset_thread_poster— functionspawn_local— functionThreadPoster— type aliasContinuationId— structTask— structTaskCanceledError— structTaskCompletionSource— structTaskStatus— enum
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.