aboutsummaryrefslogtreecommitdiff
path: root/core/src/async_runtime/lock.rs
diff options
context:
space:
mode:
Diffstat (limited to 'core/src/async_runtime/lock.rs')
-rw-r--r--core/src/async_runtime/lock.rs5
1 files changed, 5 insertions, 0 deletions
diff --git a/core/src/async_runtime/lock.rs b/core/src/async_runtime/lock.rs
new file mode 100644
index 0000000..fc84d1d
--- /dev/null
+++ b/core/src/async_runtime/lock.rs
@@ -0,0 +1,5 @@
+#[cfg(feature = "smol")]
+pub use smol::lock::{Mutex, MutexGuard, OnceCell, RwLock};
+
+#[cfg(feature = "tokio")]
+pub use tokio::sync::{Mutex, MutexGuard, OnceCell, RwLock};