Zeitpunkt Nutzer Delta Tröts TNR Titel Version maxTL Di 30.07.2024 00:00:20 61.967 +2 3.590.362 57,9 Fosstodon 4.2.10 500 Mo 29.07.2024 00:00:12 61.965 -1 3.587.302 57,9 Fosstodon 4.2.10 500 So 28.07.2024 00:00:15 61.966 +3 3.586.611 57,9 Fosstodon 4.2.10 500 Sa 27.07.2024 00:00:14 61.963 +5 3.583.830 57,8 Fosstodon 4.2.10 500 Fr 26.07.2024 00:01:07 61.958 +1 3.580.868 57,8 Fosstodon 4.2.10 500 Do 25.07.2024 00:00:10 61.957 +1 3.577.506 57,7 Fosstodon 4.2.10 500 Mi 24.07.2024 00:01:07 61.956 0 3.574.077 57,7 Fosstodon 4.2.10 500 Di 23.07.2024 00:00:03 61.956 -3 3.570.705 57,6 Fosstodon 4.2.10 500 Mo 22.07.2024 00:01:10 61.959 +1 3.567.825 57,6 Fosstodon 4.2.10 500 So 21.07.2024 00:01:07 61.958 0 3.564.861 57,5 Fosstodon 4.2.10 500
Spindel (@spider) · 11/2022 · Tröts: 177 · Folger: 50
Di 30.07.2024 18:55
How to accidentally implement unlimited buffering?
let (tx, rx) = mpsc::channel(10);
for _ in multitudes {
let tx = tx.clone();
spawn( async move ||
tx.send(()).await?
)
}
Because if the channel is full, the task will wait for a slot to be free.
Like. Whut? I mean, whut?! I had a size limit on it to avoid that behaviour, but try_send() is seemingly the thing to use to not get infinite buffering before we fill the 10 available slots...
[Öffentlich] Antw.: 0 Wtrl.: 0 Fav.: 0