Skip to content

Is the handle_tasks system in the async_comput example polling or blocking? #8085

Closed Answered by Aiden2207
rohel01 asked this question in Q&A
Discussion options

You must be logged in to vote

It doesn't block, future::poll_once means that the future will complete immediately when .awaited or block_oned, assuming the future is well-behaved. The code here just checks to see if the future is done, and consumes the output if it is.

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by rohel01
Comment options

You must be logged in to vote
0 replies
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