Is there a way to specify a single-threaded runtime using the attribute #[tokio::main]
in tokio 0.2? The doc does not seem to have examples for that.
EDIT: I wanted to find a way to set up tokio runtime so that rustc
is aware of tokio:spawn()
will not be a new thread.