package utils import "context" func IsCtxDone(ctx context.Context) bool { select { case <-ctx.Done(): return true default: return false } }