CLOSED

Constant CLOSED 

Source
pub(crate) const CLOSED: usize = _; // 8usize
Expand description

Set if the task is closed.

If a task is closed, that means it’s either canceled or its output has been consumed by the Task. A task becomes closed in the following cases:

  1. It gets canceled by Runnable::drop(), Task::drop(), or Task::cancel().
  2. Its output gets awaited by the Task.
  3. It panics while polling the future.
  4. It is completed and the Task gets dropped.