Skip to content

Conversation

@tmiasko
Copy link
Contributor

@tmiasko tmiasko commented Sep 21, 2019

Previously the With implementation never consulted the inner sink
poll_ready before initiating a send operation.

After changes the With combinator is considered ready when processing
of previous item has been completed and the inner sink is ready.

Additionally remove buffered state since it isn't actually used.

Issue: #1834

@cramertj
Copy link
Member

Nice, thanks for the PR! Can you add a test to ensure that this behavior doesn't regress?

Previously the `With` implementation never consulted the inner sink
`poll_ready` before initiating a send operation.

After changes the `With` combinator is considered ready when processing
of previous item has been completed and the inner sink is ready.

Additionally remove buffered state since it isn't actually used.

Issue: #1834
@tmiasko
Copy link
Contributor Author

tmiasko commented Sep 26, 2019

Added a regression test & rebased.

@cramertj cramertj merged commit 6c5c648 into rust-lang:master Sep 26, 2019
@cramertj
Copy link
Member

Thanks!

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