Skip to content

feat: introduce Pending<D, E> - #180

Merged
cratelyn merged 1 commit into
masterfrom
pending
Sep 8, 2026
Merged

feat: introduce Pending<D, E>#180
cratelyn merged 1 commit into
masterfrom
pending

Conversation

@cratelyn

@cratelyn cratelyn commented Sep 2, 2026

Copy link
Copy Markdown
Member

this commit introduces a Pending<D, E> body that is akin to
std's pending() future. this is a body that will always
yield Poll::Pending when it is polled.

in tandem with Chain<A, B> (see #178), this can be used to write test
coverage for hanging request or response bodies, and to exercise timeout
logic.

@cratelyn
cratelyn force-pushed the pending branch 2 times, most recently from 7f2b142 to 23d1787 Compare September 2, 2026 18:30
@cratelyn
cratelyn marked this pull request as ready for review September 2, 2026 18:34
@cratelyn
cratelyn requested a review from seanmonstar September 8, 2026 13:50
this commit introduces a `Pending<D, E>` body that is akin to
`futures_util`'s `pending()` future. this is a body that will always
yield `Poll::Pending` when it is polled.

in tandem with `Chain<A, B>` (see #178), this can be used to write test
coverage for hanging request or response bodies, and to exercise timeout
logic.

Signed-off-by: katelyn martin <git@katelyn.world>
@cratelyn

cratelyn commented Sep 8, 2026

Copy link
Copy Markdown
Member Author

force-pushed a small typo fix...

@cratelyn
cratelyn merged commit 929ff1c into master Sep 8, 2026
8 checks passed
@cratelyn
cratelyn deleted the pending branch September 8, 2026 16:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants