the number of goroutines that currently exist 当前 goroutine协程数量

 

Go\src\runtime\debug.go

 

// NumGoroutine returns the number of goroutines that currently exist.
func NumGoroutine() int {
    return int(gcount())
}
 
 

 

posted @ 2022-10-18 17:38  papering  阅读(15)  评论(0编辑  收藏  举报