Re:Rust’s async isn’t colored
by dathinab on Thursday March 11, 2021 @09:07AM
(#26424135)
In rust `block_on(asyncFuncion())`.
Through as async in rust is implemented in libraries (just the async=>Future transformation + some shared traits/utility is provided by rust-lang) you need to import `block_on`. E.g. `smol::block_on(asyncFunction())`.
Through as async in rust is implemented in libraries (just the async=>Future transformation + some shared traits/utility is provided by rust-lang) you need to import `block_on`. E.g. `smol::block_on(asyncFunction())`.