tokio_runtime

Function tokio_runtime 

Source
pub fn tokio_runtime() -> Runtime
Expand description

Create a new Tokio runtime

§Example

tokio_runtime().block_on(async {
    ...async stuff
});