Documentation ¶
Index ¶
- type Locker
- func (l *Locker) ForceRelease(ctx context.Context) error
- func (l *Locker) Get(ctx context.Context) (locker.Owner, error)
- func (l *Locker) LockedOwner(ctx context.Context) (locker.Owner, error)
- func (l *Locker) Release(ctx context.Context, owner locker.Owner) error
- func (l *Locker) Try(ctx context.Context, fn func()) error
- func (l *Locker) Until(ctx context.Context, timeout time.Duration, fn func()) error
- type Option
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
Click to show internal directories.
Click to hide internal directories.