Skip to content

Commit

Permalink
adjust documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
beckend committed Jan 16, 2024
1 parent 396492d commit 57a0ea7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 2 additions & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -481,7 +481,8 @@ impl<T> Event<T> {
}

/// Return the listener count
///
/// This is just a snapshot of the number of listeners at this point in time. It is possible for the actual number to change at any point.
/// The number should only ever be used as a hint.
/// This is only available when `std` feature is enabled.
///
/// # Examples
Expand Down
2 changes: 0 additions & 2 deletions src/std.rs
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,6 @@ impl<T> List<T> {
}

// Get the listener count by blocking
// This is just a snapshot of the number of listeners at this point in time. It is possible for the actual number to change at any point.
// The number should only ever be used as a hint.
pub(crate) fn total_listeners_wait(&self) -> usize {
match self.0.lock() {
Ok(mutex) => mutex.len,
Expand Down

0 comments on commit 57a0ea7

Please sign in to comment.