Skip to content
Discussion options

You must be logged in to vote
            .executor(Box::new(|fut| block_on(fut)))

This will block the whole thread until the fut is resolved. Thus nothing within Swarm (everything on the current thread) can make progress in the meantime. I am surprised this works at all (within 30s). I would expect it to deadlock.

See https://docs.rs/futures/latest/futures/executor/fn.block_on.html for details.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@KickedDroid
Comment options

Answer selected by KickedDroid
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