Documentation ¶ Index ¶ func Continue(cxt context.Context) bool func Done(cxt context.Context) bool Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func Continue ¶ func Continue(cxt context.Context) bool Continue is a convenience wrapper around a common context cancelation check. It is intended to be used when processing a loop that may be canceled; like so: for contexts.Continue(cxt) { // continue processing something... } func Done ¶ func Done(cxt context.Context) bool Continue is a convenience wrapper around a common context cancelation check. It is essentially the inverse of Continue: for { if contexts.Done(cxt) { break } // otherwise... } Types ¶ This section is empty. Source Files ¶ View all Source files contexts.go Click to show internal directories. Click to hide internal directories.