Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Context ¶
type Context struct {
// contains filtered or unexported fields
}
Context is a ready write mutex lock where Locking can return early with an error if the context is done. No error response means the lock is acquired.
func NewContext ¶
func NewContext() *Context
type OuterCancel ¶
type OuterCancel struct {
// contains filtered or unexported fields
}
func NewOuterCancel ¶
func NewOuterCancel(cancelErr error, gracefulTimeout time.Duration) *OuterCancel
func (*OuterCancel) Lock ¶
func (o *OuterCancel) Lock() context.CancelFunc
func (*OuterCancel) RLock ¶
func (o *OuterCancel) RLock(ctx context.Context) (context.Context, context.CancelFunc, error)
func (*OuterCancel) Run ¶
func (o *OuterCancel) Run(ctx context.Context)
Click to show internal directories.
Click to hide internal directories.