2020-05-08 14:12:21 +00:00
|
|
|
// could switch to futures-lock completely at some point, blocker:
|
|
|
|
// https://github.com/asomers/futures-locks/issues/34
|
|
|
|
// https://www.reddit.com/r/rust/comments/f4zldz/i_audited_3_different_implementation_of_async/
|
|
|
|
|
|
|
|
#[cfg(target_arch = "wasm32")]
|
2020-10-10 10:08:58 +00:00
|
|
|
pub use futures_locks::{Mutex, MutexGuard, RwLock, RwLockReadGuard, RwLockWriteGuard};
|
2020-05-08 14:12:21 +00:00
|
|
|
|
|
|
|
#[cfg(not(target_arch = "wasm32"))]
|
2020-10-10 10:08:58 +00:00
|
|
|
pub use tokio::sync::{Mutex, MutexGuard, RwLock, RwLockReadGuard, RwLockWriteGuard};
|