common: Expose the lock guards publicly.
parent
bd0ac703a0
commit
1c008f549c
|
@ -3,11 +3,7 @@
|
||||||
// https://www.reddit.com/r/rust/comments/f4zldz/i_audited_3_different_implementation_of_async/
|
// https://www.reddit.com/r/rust/comments/f4zldz/i_audited_3_different_implementation_of_async/
|
||||||
|
|
||||||
#[cfg(target_arch = "wasm32")]
|
#[cfg(target_arch = "wasm32")]
|
||||||
pub use futures_locks::Mutex;
|
pub use futures_locks::{Mutex, MutexGuard, RwLock, RwLockReadGuard, RwLockWriteGuard};
|
||||||
#[cfg(target_arch = "wasm32")]
|
|
||||||
pub use futures_locks::RwLock;
|
|
||||||
|
|
||||||
#[cfg(not(target_arch = "wasm32"))]
|
#[cfg(not(target_arch = "wasm32"))]
|
||||||
pub use tokio::sync::Mutex;
|
pub use tokio::sync::{Mutex, MutexGuard, RwLock, RwLockReadGuard, RwLockWriteGuard};
|
||||||
#[cfg(not(target_arch = "wasm32"))]
|
|
||||||
pub use tokio::sync::RwLock;
|
|
||||||
|
|
Loading…
Reference in New Issue