task: improve the example of poll_proceed#7586
Conversation
Signed-off-by: ADD-SP <qiqi.zhang@konghq.com>
7f9ff77 to
016a574
Compare
Darksonn
left a comment
There was a problem hiding this comment.
This is a good example, thanks.
Signed-off-by: ADD-SP <qiqi.zhang@konghq.com>
|
Actually, I'm not so sure about the example. The branch returns |
Signed-off-by: ADD-SP <qiqi.zhang@konghq.com>
Ah, bad mistake, I have fixed it. |
|
I considered adding a reasonable |
|
What about having the example be "add coop to the futures mpsc channel"? |
Signed-off-by: ADD-SP <qiqi.zhang@konghq.com>
Signed-off-by: ADD-SP <qiqi.zhang@konghq.com>
Darksonn
left a comment
There was a problem hiding this comment.
One last nit. Feel free to merge after this.
Signed-off-by: ADD-SP <qiqi.zhang@konghq.com>

Motivation
I noticed the example of
poll_proceedis a bit long while thinking about the #7565 (comment).I always prefer a short example because it helps people like me to grasp the basic usage in 10 seconds.