tokio::io::copy
should yield if it copies too many times
#6250
Labels
A-tokio
Area: The main tokio crate
E-help-wanted
Call for participation: Help is requested to fix this issue.
M-coop
Module: tokio/coop
M-io
Module: tokio/io
If
tokio::io::{copy,copy_bidirectional}
are given streams that don't interact with coop and have a lot of data available, then they should yield after copying data some number of times.One way to do this is to have
copy
consume a coop budget each time it copies a chunk of data.The text was updated successfully, but these errors were encountered: