Scoped wrapper for a shared(core.sync.mutex.Mutex).
Lock, call dg(), then unlock.
Attempt to lock, and if successful, call dg() then unlock.
Static factory method.
See Implementation
Scoped wrapper for a shared(core.sync.mutex.Mutex).