Skip to content

stream: fix panic in ChunksTimeout::new#5036

Merged
Darksonn merged 3 commits intotokio-rs:masterfrom
nylonicious:chunks-timeout-5031
Sep 27, 2022
Merged

stream: fix panic in ChunksTimeout::new#5036
Darksonn merged 3 commits intotokio-rs:masterfrom
nylonicious:chunks-timeout-5031

Conversation

@nylonicious
Copy link
Copy Markdown
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
Copy Markdown
Member

@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