Documentation ¶
Overview ¶
Package ctxutil provides context helpers.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SigTerm ¶
SigTerm returns a copy of the parent context that is marked done (its Done channel is closed) when termination signal arrives, when the returned stop function is called, or when the parent context's Done channel is closed, whichever happens first.
func SleepWithJitter ¶
SleepWithJitter pauses the current goroutine until d + jitter has passed or ctx is canceled.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.