Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

stream: fix panic in ChunksTimeout::new #5036

Merged
merged 3 commits into from Sep 27, 2022
Merged

stream: fix panic in ChunksTimeout::new #5036

merged 3 commits into from Sep 27, 2022

Conversation

nylonicious
Copy link
Contributor

Don't panic when creating ChunksTimeout outside of runtime context.

Fixes #5031

@Darksonn Darksonn added M-time Module: tokio/time A-tokio-stream Area: The tokio-stream crate labels Sep 20, 2022
Copy link
Contributor

@Darksonn Darksonn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@Darksonn Darksonn enabled auto-merge (squash) September 27, 2022 21:47
@Darksonn Darksonn merged commit 2df4523 into tokio-rs:master Sep 27, 2022
@nylonicious nylonicious deleted the chunks-timeout-5031 branch September 30, 2022 07:29
dbischof90 pushed a commit to dbischof90/tokio that referenced this pull request Oct 1, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-tokio-stream Area: The tokio-stream crate M-time Module: tokio/time
Projects
None yet
Development

Successfully merging this pull request may close these issues.

tokio-stream chunks_timeout only works in a tokio runtime context
2 participants