Skip to content

Commit

Permalink
Typo
Browse files Browse the repository at this point in the history
  • Loading branch information
Stjepan Glavina committed Aug 20, 2020
1 parent 3f3b5d9 commit e91d306
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/reactor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -556,11 +556,11 @@ impl Source {
/// clear the list and wake all of them at once.
///
/// This strategy prevents memory leaks by bounding the number of stored wakers. However, since all
/// wakers get woken, tasks might simply re-register their interest again, thus creating an infinite
/// loop and burning CPU cycles forever.
/// wakers get woken, tasks might simply re-register their interest again, thus creating an
/// infinite loop and burning CPU cycles forever.
///
/// However, we don't worry about such scenarios because it's very unlikely to have more than two
/// actually concurrent tasks operating a single async I/O handle. If we happen to cross the
/// actually concurrent tasks operating on a single async I/O handle. If we happen to cross the
/// aforementioned threshold, we have bigger problems to worry about.
fn limit_waker_list(wakers: &mut Vec<Waker>) {
if wakers.len() > 50 {
Expand Down

0 comments on commit e91d306

Please sign in to comment.