Skip to content

Commit 95f3eae

Browse files
author
Stjepan Glavina
committed
Bump to v2.5.0
1 parent 417658b commit 95f3eae

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
# Version 2.5.0
2+
3+
- Add `EventListener::discard()`.
4+
15
# Version 2.4.0
26

37
- `Event::new()` is now a const fn.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "event-listener"
3-
version = "2.4.0"
3+
version = "2.5.0"
44
authors = ["Stjepan Glavina <[email protected]>"]
55
edition = "2018"
66
description = "Notify async tasks or threads"

src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -522,7 +522,7 @@ impl EventListener {
522522
self.wait_internal(Some(deadline))
523523
}
524524

525-
/// Drop this listener and discard its notification (if any) without notifying another
525+
/// Drops this listener and discards its notification (if any) without notifying another
526526
/// active listener.
527527
///
528528
/// Returns `true` if a notification was discarded.

0 commit comments

Comments
 (0)