Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RWMutex ¶ added in v0.4.1
RWMutex is a sync.RWMutex whose writers can wait a bounded time for the lock with TryLockFor.
func (*RWMutex) TryLockFor ¶ added in v0.4.1
TryLockFor is like TryLock but keeps trying for up to d, or until ctx is done, so a lock held briefly by another writer does not fail the caller. It polls rather than waits in Lock, so the lock cannot be held up by callers that have given up. It returns whether it locked rw.
Click to show internal directories.
Click to hide internal directories.