Function in_async_context
pub fn in_async_context() -> boolExpand description
Whether the calling thread drives async tasks of a runtime from this
crate: a worker, the app runtime thread, or a thread inside one of its
block_ons. Blocking-pool threads do not count; their thread exists to
block, though they are inside a runtime all the same (in_runtime).