You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Waker and LocalWaker docs: Warn against a particular, likely, abuse
In pers. comm with colleagues, it became clear that even fairly
experienced Rust programmers can be confused about the behaviour of
Futures.
No-op wakers seem like a superficially attractive answer for calling a
poll method when no waker is available. So, at least add some docs
warning of the problems.
This may even save someone using Stable, since they may see the
warning and choose a better approach, rather than simply writing their
own no-op waker.
0 commit comments