3 ms·
F# Async functions are colored, in case people are wondering. However, you can "un-color" them like this: doAsyncThing |> Async.RunSynchronously
by dfgdghdf 6y ago
F# Async functions are colored, in case people are wondering.
However, you can "un-color" them like this:
doAsyncThing
|> Async.RunSynchronously
- dathinab 6y agoIn 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())`.