[−][src]Function tbot::run
pub fn run<F>(future: F) where
F: Future<Error = ()> + Send + 'static,
A wrapper around tokio::run
without F::Item: ()
.
When calling an API method, you'll most likely throw away its result.
However, tokio
requires that F::Item
be ()
. tbot
provides
a thin wrapper around tokio::run
that maps F::Item
to ()
.
On the other hand, tbot
still requires that you handle possible errors
properly before running a future.