jjl
jjl
[now done](https://github.com/irrustible/futures-micro/pull/3)
you already can, it's in the released `futures-micro`
there's a PR for that! #15
Actually it turns out I don't need this anymore, but I still think it's a good idea for at some point :)
This PR is very old, I think probably the right answer is to close it at this point, but i could bring it up to date if you wanted. Notes:...
> That's interesting to know. At some point I will make a move to pin-project-lite in light of this. This one is now done in main. The rest require a...
slightly more contentious bonus: ``` pub async fn delay() { let mut done = false; future::poll_fn(|_| { if done { Poll::Ready(()) } else { done = true; Poll::Pending } }).await...
AIUI, yield_now() reschedules the current future? Delay is for when you don't want to do that (because you're messing with wakers)
I went and looked, and yes, that's the essential difference - with `delay`, we don't wake ourselves.
These have now made it into [futures-micro](https://github.com/irrustible/futures-micro) as 'waker' and 'sleep'. You might also like to steal `PollState`. Or you might find it offensive and decide not to :)