andreiltd opened PR #13654 from andreiltd:stdout-flush to bytecodealliance:main:
This is aggresive and it may be more flushing than necessary.
andreiltd requested pchickey for a review on PR #13654.
andreiltd requested wasmtime-wasi-reviewers for a review on PR #13654.
andreiltd requested wasmtime-core-reviewers for a review on PR #13654.
andreiltd converted PR #13654 Flush stdout on every chunk accepted from the p3 stream to a draft.
:thumbs_up: alexcrichton submitted PR review:
Thanks!
:speech_balloon: alexcrichton created PR review comment:
This'll want to handle the case of
if finishwhich returnsStreamResult::Cancelledinstead. That'll additionally apply to the block below, too.While you're here, the block at this location and below look more-or-less the same. Would it be possible to delegate everything into a helper method or fall-through?
andreiltd updated PR #13654.
andreiltd has marked PR #13654 as ready for review.
:memo: alexcrichton submitted PR review.
:speech_balloon: alexcrichton created PR review comment:
Oh this can stay as-is. When
finishis true it just means "try not to block" but it's more faithful to say "completed" than "cancelled"
:speech_balloon: alexcrichton created PR review comment:
Since these helpers are only called from above, can the bodies be inlined up there?
:memo: andreiltd submitted PR review.
:speech_balloon: andreiltd created PR review comment:
Gotcha!
andreiltd updated PR #13654.
:thumbs_up: alexcrichton submitted PR review.
alexcrichton has enabled auto merge for PR #13654.
alexcrichton added PR #13654 Flush stdout on every chunk accepted from the p3 stream to the merge queue.
alexcrichton removed PR #13654 Flush stdout on every chunk accepted from the p3 stream from the merge queue.
:check: alexcrichton merged PR #13654.
Last updated: Jul 29 2026 at 05:03 UTC