Documentation ¶
Index ¶
- type Flock
- func (l *Flock) Clean() error
- func (l *Flock) Lock(ctx context.Context) error
- func (l *Flock) RLock(ctx context.Context) error
- func (l *Flock) RUnlock() error
- func (l *Flock) TryLock(ctx context.Context) (bool, error)
- func (l *Flock) TryRLock(ctx context.Context) (bool, error)
- func (l *Flock) Unlock() error
- type Locker
- type Multi
- type RWLocker
- type UnlockFunc
- type Unlocker
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Multi ¶
type Multi struct {
// contains filtered or unexported fields
}
func (*Multi) AddFunc ¶
func (m *Multi) AddFunc(f UnlockFunc)
type RWLocker ¶
type UnlockFunc ¶
type UnlockFunc = func() error
Click to show internal directories.
Click to hide internal directories.