Documentation
¶
Overview ¶
Package ctxlock is deprecated. Use ctxlock/v2 instead.
Index ¶
- type Lockerdeprecated
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Locker
deprecated
type Locker struct{}
Locker provides context-scoped locks.
Deprecated: Use ctxlock/v2 instead.
func (*Locker) TryLock
deprecated
TryLock attempts to lock on the provided key.
If unsuccessful, an already-canceled Context will be returned.
If successful, the returned Context will be parented to the passed-in Context and also to the underlying connection used for the lock.
Deprecated: Use ctxlock/v2 instead.
Click to show internal directories.
Click to hide internal directories.