Movatterモバイル変換


[0]ホーム

URL:


goroutines

package
v1.92.3Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 16, 2025 License:BSD-3-ClauseImports:7Imported by:4

Details

Repository

github.com/tailscale/tailscale

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

func ScrubbedGoroutineDump(allbool) []byte

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

typeTrackeradded inv1.80.0

type Tracker struct {// contains filtered or unexported fields}

Tracker tracks a set of goroutines.

func (*Tracker)AddDoneCallbackadded 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.

func (*Tracker)Goadded inv1.80.0

func (t *Tracker) Go(f func())

func (*Tracker)RunningGoroutinesadded inv1.80.0

func (t *Tracker) RunningGoroutines()int64

func (*Tracker)StartedGoroutinesadded inv1.80.0

func (t *Tracker) StartedGoroutines()int64

Source Files

View all Source files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f orF : Jump to
y orY : Canonical URL
go.dev uses cookies from Google to deliver and enhance the quality of its services and to analyze traffic.Learn more.

[8]ページ先頭

©2009-2025 Movatter.jp