Skip to main content

Module task

Module task 

Source
Expand description

Functions for task management that don’t belong inside the Runtime trait.

Re-exports§

use std::future::Future; 🔒
use std::pin::Pin; 🔒
use std::task::Context; 🔒
use std::task::Poll; 🔒

Structs§

YieldFuture
A future returned by yield_now().

Functions§

yield_now
Yield execution back to the runtime temporarily, so that other tasks can run.