From 6e98c2f7c61b48bcd8cecd1cdbb15aa9afafde39 Mon Sep 17 00:00:00 2001 From: leoxhyang Date: Thu, 27 Apr 2023 19:30:36 +0800 Subject: [PATCH] add log when goroutine return --- pool.go | 1 + 1 file changed, 1 insertion(+) diff --git a/pool.go b/pool.go index 347f3f1..c2a51a0 100644 --- a/pool.go +++ b/pool.go @@ -96,6 +96,7 @@ func (p *Pool) GoCtx(ctx context.Context, task Task) { task() case <-idleTimer.C: // worker exits + log.Printf("goroutine return...") return }