[][src]Trait tokio_lk::New

pub trait New<T: Clone>: Destruct<T> {
    fn new(target: usize, map: KeyPool<T>) -> Self;
}

Required methods

fn new(target: usize, map: KeyPool<T>) -> Self

Loading content...

Implementors

impl New<Arc<Mutex<HashMap<usize, Arc<(AtomicUsize, AtomicUsize, AtomicSerialWaker)>, RandomState>>>> for Lock<MapType>[src]

fn new(target: usize, map: KeyPool<MapType>) -> Self[src]

Create a Lock instance. This operation might block threads from parking for a while Don't use this function inside tokio context please refer to fnew function to provide asynchrons Lock instance generation

Loading content...