package
25.1.0+incompatible
Repository: https://github.com/cockroachdb/cockroach.git
Documentation: pkg.go.dev
# Functions
HandleDebug responds with the list of stopper tasks actively running.
NewStopper returns an instance of Stopper.
PrintLeakedStoppers prints (using `t`) the creation site of each Stopper for which `.Stop()` has not yet been called.
WithTracer is an option for NewStopper() supplying the Tracer to use for creating spans for tasks.
# Constants
ChildSpan makes the task run in a span that's a child of the caller's span (if any).
FollowsFromSpan makes the task run in a span that's not included in the caller's recording (if any).
SterileRootSpan makes the task run in a root span that doesn't get any children.
# Variables
ErrThrottled is returned from RunAsyncTaskEx in the event that there is no more capacity for async tasks, as limited by the semaphore.
ErrUnavailable indicates that the server is quiescing and is unable to process new work.
# Type aliases
CloserFn is type that allows any function to be a Closer.
SpanOption specifies the type of tracing span that a task will run in.