tokio
1.41.1
Module id
Structs
Functions
In tokio::runtime::task
Module
tokio
::
runtime
::
task
::
id
Copy item path
source
·
[
−
]
Structs
§
Id
An opaque ID that uniquely identifies a task relative to all other currently running tasks.
Functions
§
id
Returns the
Id
of the currently running task.
try_id
Returns the
Id
of the currently running task, or
None
if called outside of a task.