pub(crate) const CLOSED: usize = _; // 8usizeExpand 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:
- It gets canceled by
Runnable::drop(),Task::drop(), orTask::cancel(). - Its output gets awaited by the
Task. - It panics while polling the future.
- It is completed and the
Taskgets dropped.