Documentation
¶
Overview ¶
Package contexts is a package that contains examples of how to use context. This is named context(s) so that it doesn't collide with the standard library.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FinishTaskBeforeContextTimeout ¶
FinishTaskBeforeContextTimeout is an example of how to use context with timeout that should complete before the timeout.
func TimeoutContextBeforeTaskIsFinished ¶
TimeoutContextBeforeTaskIsFinished is an example of how to use context to cancel a task before it finishes.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.