Skip to content
Better HN
Top
New
Best
Ask
Show
Jobs
Search
⌘K
undefined | Better HN
0 points
abiro
3y ago
0 comments
Share
Even simpler to use `futures::executor::block_on`. No need to create a runtime, you can just call the function.
https://docs.rs/futures/latest/futures/executor/fn.block_on....
0 comments
default
newest
oldest
Matthias247
3y ago
That will only allow to run futures which have no IO dependency. Other typically expect a certain runtime to be running, because they eg use the epoll loop of that runtime to make progress.
j
/
k
navigate · click thread line to collapse