poll-mechanism

1
quality: all 6+ 8+
7
0

This article explains 'snoozing' in async Rust—when a future that requested a wakeup is never polled again—and demonstrates how it causes deadlocks (futurelocks) through concrete examples using select!, loops, and streams. The author argues snoozing is almost always a bug and explores the differences between snoozing, cancellation, and starvation in async Rust programs.

jacko.io · vinhnx· 1 month ago · 27 min · tutorial · details · hn 15