Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Context ¶
func New ¶
New creates a context that wraps the given context and returns an obj that can be cancelled. This allows an object which desires to cancel a long running operation to store a single cancel.Context in it's struct variables instead of having to store both the context.Context and context.CancelFunc.
type WrappedContext ¶ added in v4.0.2
func (*WrappedContext) Done ¶ added in v4.0.2
func (w *WrappedContext) Done() <-chan struct{}
func (*WrappedContext) Err ¶ added in v4.0.2
func (w *WrappedContext) Err() error
func (*WrappedContext) Reason ¶ added in v4.0.2
func (w *WrappedContext) Reason(err error)
Click to show internal directories.
Click to hide internal directories.