3 ms·
In rust `block_on(asyncFuncion())`. Through as async in rust is implemented in libraries (just the async=>Future transformation + some shared traits/utility is
by dathinab 6y ago
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())`.