Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Context ¶
func 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.
Click to show internal directories.
Click to hide internal directories.