The doc of Future::poll
says:
The
poll
function is not called repeatedly in a tight loop – instead, it should only be called when the future indicates that it is ready to make progress (by callingwake()
).
Does that mean async runtimes must not poll a future before it's being woken and in case this rule is violated the future can simply panic?