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; they exist to block.