MCPcopy Create free account
hub / github.com/GoEdgeLab/EdgeNode / List

Function List

internal/goman/lib.go:81–90  ·  view source on GitHub ↗

List 列出所有正在运行goroutine

()

Source from the content-addressed store, hash-verified

79
80// List 列出所有正在运行goroutine
81func List() []*Instance {
82 locker.Lock()
83 defer locker.Unlock()
84
85 var result = []*Instance{}
86 for _, instance := range instanceMap {
87 result = append(result, instance)
88 }
89 return result
90}

Callers 2

TestNewFunction · 0.92
listenSockMethod · 0.92

Calls 2

LockMethod · 0.45
UnlockMethod · 0.45

Tested by 1

TestNewFunction · 0.74