pub fn new(value: T) -> Self {
        let state = MutexState {
            holder: None,
            waiters: TaskSet::new(),
        };

        Self {
            inner: std::sync::Mutex::new(value),
            state: Rc::new(RefCell::new(state)),
        }
    }
/// Creates a new mutex in an unlocked state ready for use.
Creates a new mutex in an unlocked state ready for use.
Creates a new mutex in an unlocked state ready for use .
pub fn new(value: T) -> Self {
        let state = MutexState {
            holder: None,
            waiters: TaskSet::new(),
        };
        Self {
            inner: std::sync::Mutex::new(value),
            state: Rc::new(RefCell::new(state)),
        }
    }
pub fn new ( value : T ) -> Self { let state = MutexState { holder : None , waiters : TaskSet :: new ( ) , } ; Self { inner : std :: sync :: Mutex :: new ( value ) , state : Rc :: new ( RefCell :: new ( state ) ) , } }
Creates a new mutex in an unlocked state ready for use.
Creates a new mutex in an unlocked state ready for use .
value
T
value
T