Skip to content

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

Open
cratelyn wants to merge 1 commit into
masterfrom
pending
Open

feat: introduce Pending<D, E>#180
cratelyn wants to merge 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.

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 marked this pull request as ready for review September 2, 2026 18:34
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.

1 participant