Skip to content

Commit eea7901

Browse files
authored
fix(async_flag): reexport name (#12)
* fix(async_flag): reexport name * docs: add "Async Flag" to README
1 parent 3f164e1 commit eea7901

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,3 +15,4 @@ All of the following primitives are provided in both sync and unsync versions:
1515
- BiLock
1616
- Flag (specialized `AtomicBool`)
1717
- Event (`event-listener` and `local-event`)
18+
- Async Flag

src/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ pub mod sync {
6666

6767
#[doc(inline)]
6868
#[cfg(feature = "async_flag")]
69-
pub use crate::async_flag::sync as notify;
69+
pub use crate::async_flag::sync as async_flag;
7070
#[doc(inline)]
7171
#[cfg(feature = "bilock")]
7272
pub use crate::bilock::sync as bilock;
@@ -95,7 +95,7 @@ pub mod unsync {
9595

9696
#[doc(inline)]
9797
#[cfg(feature = "async_flag")]
98-
pub use crate::async_flag::unsync as notify;
98+
pub use crate::async_flag::unsync as async_flag;
9999
#[doc(inline)]
100100
#[cfg(feature = "bilock")]
101101
pub use crate::bilock::unsync as bilock;

0 commit comments

Comments
 (0)