稼動中のgoroutineの数え方

func numGoroutine() {
	for {
		fmt.Println("======>numGoroutine", runtime.NumGoroutine())
		time.Sleep(1 * time.Second) // 1秒待つ
	}
}

未分類

Posted by ebata