summaryrefslogtreecommitdiffstats
path: root/src/mutex.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/mutex.rs')
-rw-r--r--src/mutex.rs8
1 files changed, 0 insertions, 8 deletions
diff --git a/src/mutex.rs b/src/mutex.rs
index 1c6faff..df28ffc 100644
--- a/src/mutex.rs
+++ b/src/mutex.rs
@@ -8,11 +8,3 @@ pub fn new<T>(t: T) -> async_std::sync::Arc<async_std::sync::Mutex<T>> {
pub fn clone<T>(m: &Mutex<T>) -> Mutex<T> {
async_std::sync::Arc::clone(m)
}
-
-pub fn unwrap<T: std::fmt::Debug>(t: Mutex<T>) -> Option<T> {
- if let Ok(mutex) = async_std::sync::Arc::try_unwrap(t) {
- Some(async_std::sync::Mutex::into_inner(mutex))
- } else {
- None
- }
-}