package
19.2.12+incompatible
Repository: https://github.com/viragtripathi/cockroach.git
Documentation: pkg.go.dev
# Functions
GetCancelReason retrieves the cancel reason for a context that has been created via WithCancelReason.
RunWithTimeout runs a function with a timeout, the same way you'd do with context.WithTimeout.
WithCancel adds an info log to context.WithCancel's CancelFunc.
WithCancelReason adds a CancelFunc to this context, returning a new cancellable context and a CancelWithReasonFunc, which is like context.CancelFunc, except it also takes a "reason" error.
# Structs
TimeoutError is a wrapped ContextDeadlineExceeded error.
# Type aliases
CancelWithReasonFunc is a context.CancelFunc that also passes along an error that is the reason for cancellation.