Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewStopChanContext ¶
func NewStopChanContext(stopCh <-chan struct{}) (context.Context, context.CancelFunc)
NewStopChanContext returns new context for the given stopCh, together with cancel function.
The returned context is canceled on the following events:
- when stopCh is closed
- when the returned CancelFunc is called
The caller must call the returned CancelFunc when the context is no longer needed.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.