Open tshemsedinov opened 5 years ago
QueuedMutex
class QueuedMutex { status: SM_UNLOCKED | SM_LOCKED, async enter(callback), // if no callback passed Promise will be returned leave() }
QueuedMutex
allow us to wait for resource in queue