is_async_context

Function is_async_context 

Source
pub fn is_async_context() -> bool
Expand description

Returns whether the current code is being executed in an async context.

If tokio is disabled, this function will always return false.