Skip to content

Commit

Permalink
Add a OnceCell type (#27)
Browse files Browse the repository at this point in the history
  • Loading branch information
notgull committed Aug 28, 2022
1 parent ae34a25 commit 05fed2a
Show file tree
Hide file tree
Showing 3 changed files with 808 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Cargo.toml
Expand Up @@ -15,12 +15,12 @@ categories = ["asynchronous", "concurrency"]
exclude = ["/.*"]

[dependencies]
futures-lite = "1.11.0"
event-listener = "2.5.1"

[dev-dependencies]
async-channel = "1.5.0"
fastrand = "1.4.0"
futures-lite = "1.11.0"

[target.'cfg(any(target_arch = "wasm32", target_arch = "wasm64"))'.dev-dependencies]
wasm-bindgen-test = "0.3"
2 changes: 2 additions & 0 deletions src/lib.rs
Expand Up @@ -11,10 +11,12 @@

mod barrier;
mod mutex;
mod once_cell;
mod rwlock;
mod semaphore;

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

0 comments on commit 05fed2a

Please sign in to comment.