Function await_tree::current_tree
source · pub fn current_tree() -> Option<TreeContext>Expand description
Get the await-tree context of current task. Returns None if we’re not instrumented.
This is useful if you want to check which component or runtime task is calling this function.