You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If it's acceptable to block the JavaScript main thread while awaiting, it can be significantly simplified by using block_on to synchronously block until the Future completes.
I am using a rust crate that requires the use of async functions, and so my main function looks like this:
I would like to
.await
on theasync_fn
, what is the way to achieve this?The text was updated successfully, but these errors were encountered: