Skip to content

Could futures::executor::block_on() lead to deadlock when being invoked in a Monoio task? #312

Answered by ethe
SteveLauC asked this question in Q&A
Discussion options

You must be logged in to vote

The same is true in monoio. Running the io-bound future in futures::block_on will cause the monoio reactor to lose the opportunity to react the io event, and futures::block_on will never be ready.

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@SteveLauC
Comment options

@ethe
Comment options

ethe Oct 24, 2024
Maintainer

@SteveLauC
Comment options

Answer selected by ethe
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants