Module tokio::runtime::task::id

source ·

Structs§

  • An opaque ID that uniquely identifies a task relative to all other currently running tasks.

Functions§

  • Returns the Id of the currently running task.
  • Returns the Id of the currently running task, or None if called outside of a task.