Intro
In this post we will try and explain how the reactor works. In the previous posts we used it extensively to execute our futures bu...
For further actions, you may consider blocking this person and/or reporting abuse
Hi
many thanks for that tutorial, really interesting! I just got one question:
You state the reactor parks our future in case we return
But here, you seem to notify the reactor to unpark before we return Ok(Async::NotReady):
So the reactor gets a notification to unpark something that's not yet been parked, doesn't it? ;-)
Ah yes it's true.
It's an horrible way of simulating the external unpark command :)
Ideally this command should be issued by another "entity" (for example the OS in case of async IO).