WIP Codex migration to AsyncIterator + poll_progress #1
<sub><sub>!P2 Badge</sub></sub> Do not poll the chained tail before the head finishes
When the first iterator returns Pending, chain should remain lazy and sequential: the second iterator should not be driven until the first has returned Done. Calling me.b.poll_progress(cx) here lets a tail iterator with side effects or internal buffering run on every poll of a pending head, changing behavior that the previous implementation avoided.
Useful? React with 👍 / 👎.
<sub><sub>!P2 Badge</sub></sub> Stop emitting timeouts after the inner iterator is done
If poll_progress is called when the wrapped iterator has just returned Done and the deadline is ready, this branch still queues an Err(Elapsed), so the next poll_next can yield a timeout after EOF. poll_next already avoids this with !me.stream.is_terminated(), and poll_progress needs the same guard to keep completed streams from producing extra timeout errors.
Useful? React with 👍 / 👎.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 1f866626a6
<details> <summary>ℹ️ About Codex in GitHub</summary>
<br/>
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
</details>
Agreed, good catch.
oconnor663
This is a Codex branch for experimenting with
poll_progress. This PR is local to my own fork. This will not build onstableornightly; you need to use this Rust branch. You also need thisfutures-rsbranch checked out next totokio.