Skip to content

Commit 05fed2a

Browse files
authored
Add a OnceCell type (#27)
1 parent ae34a25 commit 05fed2a

File tree

3 files changed

+808
-1
lines changed

3 files changed

+808
-1
lines changed

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,12 @@ categories = ["asynchronous", "concurrency"]
1515
exclude = ["/.*"]
1616

1717
[dependencies]
18+
futures-lite = "1.11.0"
1819
event-listener = "2.5.1"
1920

2021
[dev-dependencies]
2122
async-channel = "1.5.0"
2223
fastrand = "1.4.0"
23-
futures-lite = "1.11.0"
2424

2525
[target.'cfg(any(target_arch = "wasm32", target_arch = "wasm64"))'.dev-dependencies]
2626
wasm-bindgen-test = "0.3"

src/lib.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,12 @@
1111

1212
mod barrier;
1313
mod mutex;
14+
mod once_cell;
1415
mod rwlock;
1516
mod semaphore;
1617

1718
pub use barrier::{Barrier, BarrierWaitResult};
1819
pub use mutex::{Mutex, MutexGuard, MutexGuardArc};
20+
pub use once_cell::OnceCell;
1921
pub use rwlock::{RwLock, RwLockReadGuard, RwLockUpgradableReadGuard, RwLockWriteGuard};
2022
pub use semaphore::{Semaphore, SemaphoreGuard, SemaphoreGuardArc};

0 commit comments

Comments
 (0)