goroutines
packageThis package is not in the latest version of its module.
Details
Validgo.mod file
The Go module system was introduced in Go 1.11 and is the official dependency management solution for Go.
Redistributable license
Redistributable licenses place minimal restrictions on how software can be used, modified, and redistributed.
Tagged version
Modules with tagged versions give importers more predictable builds.
Stable version
When a project reaches major version v1 it is considered stable.
- Learn more about best practices
Repository
Links
Documentation¶
Overview¶
The goroutines package contains utilities for tracking and getting active goroutines.
Index¶
Constants¶
This section is empty.
Variables¶
This section is empty.
Functions¶
funcScrubbedGoroutineDump¶
ScrubbedGoroutineDump returns either the current goroutine's stack or allgoroutines' stacks, but with the actual values of arguments scrubbed out,lest it contain some private key material.
Types¶
typeTracker¶added inv1.80.0
type Tracker struct {// contains filtered or unexported fields}Tracker tracks a set of goroutines.
func (*Tracker)AddDoneCallback¶added inv1.80.0
func (t *Tracker) AddDoneCallback(f func()) (remove func())
AddDoneCallback adds a callback to be called in a new goroutinewhenever a goroutine managed by t (excluding ones from this method)finishes. It returns a function to remove the callback.