ExclusiveImpl.lock

Obtain exclusive access to the payload. The mutex is locked and when the returned Guard object's lifetime is over the mutex is unloked.

struct ExclusiveImpl(T)
shared
lock
()

Meta