Function spawns_core::id

source ·
pub fn id() -> Id
Expand description

Gets running task’s id. Panic if no reside in managed async task.

§Cautions

See cautions of Id.