Constant tokio::runtime::task::state::INITIAL_STATE

source ยท
const INITIAL_STATE: usize = _; // 204usize
Expand description

State a task is initialized with.

A task is initialized with three references:

  • A reference that will be stored in an OwnedTasks or LocalOwnedTasks.
  • A reference that will be sent to the scheduler as an ordinary notification.
  • A reference for the JoinHandle.

As the task starts with a JoinHandle, JOIN_INTEREST is set. As the task starts with a Notified, NOTIFIED is set.