Expand description
§block-on-place
For when you want to call block_on() on a tokio::runtime::Handle but
cannot 100% guarantee that you’re not inside of a runtime.
Internally, this uses task::block_in_place() to call
Handle::block_on().
§Features
You can enable the tracing feature to get a warning when calling
block_on_place() from within a runtime context.
Traits§
- Handle
Ext - Extension trait for
tokio::runtime::Handlewhich allows calling [block_on()] from within a runtime context.