Making a leaf future for tokio
Dodgy Coding | 16 views | 2019-06-30
I play around with a standalone future to see how the tokio executor’s polling works in practice. I then adapt a callback-based API to work with futures, including a full implementation of a leaf future that transitions from NotReady to Ready.