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.

# Structs

A Stopper provides control over the lifecycle of goroutines started through it via its RunTask, RunAsyncTask, and other similar methods.
TaskOpts groups the task execution options for RunAsyncTaskEx.

# Interfaces

Closer is an interface for objects to attach to the stopper to be closed once the stopper completes.
An Option can be passed to NewStopper.

# 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.