Macro main_rt
macro_rules! main_rt { ... }
Marks async function to be executed by selected runtime. This macro helps set up a Runtime
without requiring the user to use Runtime or
Builder directly.
Function arguments:
Arguments are allowed for any functions aside from main which is special
Usage
Using default
async
Equivalent code not using #[tokio::main]
Rename package
use tokio as tokio1;
async
Equivalent code not using #[tokio::main]
use tokio as tokio1;