pub fn get_current_task() -> Option<TaskId>Expand description
Gets the TaskId of the current task, or None if there is no current task.
Panics if called outside of a Shuttle execution, or while Shuttle is updating its own state
(which is when it calls tracing subscribers for some of its own events). Use
try_get_current_task in code that can run in those places.