Skip to content

Custom Stream impl not getting polled #2689

Answered by Darksonn
cdmistman asked this question in General
Discussion options

You must be logged in to vote

If you return Poll::Pending, then that is a promise that you will send a wake-up notification to the waker in the provided context once you are ready to continue. It is not polled because you are not sending any wake-ups.

You likely want to do this by polling a Delay, but you should note that just creating it is not enough. You have to actually poll it. Check out our async in depth guide for more information.

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by carllerche
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
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #2689 on July 24, 2020 19:16.