ph
Size: a a a
ph
¯
tasks.clear()ph
11
context.waker().wake_by_ref()? или что?АГ
Ct
let _ = tasks.iter().map(|t| t.abort());?for_each вместо map, иначе у тебя abort не вызовется.PP
> If you want to work more directly with the streams and sink, consider calling split on the UdpFramed returned by this method, which will break them into separate objects, allowing them to interact more easily.V
> If you want to work more directly with the streams and sink, consider calling split on the UdpFramed returned by this method, which will break them into separate objects, allowing them to interact more easily.PP
tokio_util::udp::frame::UdpFramed<net::Codec>: tokio::io::async_write::AsyncWrite is not satisfiedtokio::io::async_write::AsyncWrite is not implemented for tokio_util::udp::frame::UdpFramed<net::Codec>PP
V
PP
A
A
A
D
A
let task_set = TaskSet::new();
for .. {
task_set.spawn(async move {})
}
task_set.await
D