Module runtime

Source
Expand description

Futures Async Execute Engine

§Examples

use futures_net::runtime::Runtime;

#[futures_net::main]
async fn main() {
       say_hello().await;
}
async fn say_hello() {
    println!("Hello, futures_net!");
}

Traits§

Runtime
The Runtime for driving the application.
Spawner
The value for spawning cases.

Functions§

default
Create an instance of Runtime used by the default harness.