Function tryLock [src]
Tries to acquire the mutex without blocking the caller's thread.
Returns false if the calling thread would have to block to acquire it.
Otherwise, returns true and the caller should unlock() the Mutex to release it.
Prototype
pub fn tryLock(self: *Mutex) bool
Parameters
self: *Mutex
Source
pub fn tryLock(self: *Mutex) bool {
return self.impl.tryLock();
}