File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -556,11 +556,11 @@ impl Source {
556
556
/// clear the list and wake all of them at once.
557
557
///
558
558
/// This strategy prevents memory leaks by bounding the number of stored wakers. However, since all
559
- /// wakers get woken, tasks might simply re-register their interest again, thus creating an infinite
560
- /// loop and burning CPU cycles forever.
559
+ /// wakers get woken, tasks might simply re-register their interest again, thus creating an
560
+ /// infinite loop and burning CPU cycles forever.
561
561
///
562
562
/// However, we don't worry about such scenarios because it's very unlikely to have more than two
563
- /// actually concurrent tasks operating a single async I/O handle. If we happen to cross the
563
+ /// actually concurrent tasks operating on a single async I/O handle. If we happen to cross the
564
564
/// aforementioned threshold, we have bigger problems to worry about.
565
565
fn limit_waker_list ( wakers : & mut Vec < Waker > ) {
566
566
if wakers. len ( ) > 50 {
You can’t perform that action at this time.
0 commit comments