Function await_tree::current_tree

source ·
pub fn current_tree() -> Option<Tree>
Expand description

Get the await-tree 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.