From 3bcdeda11d80927439987388cdb674b4bc612086 Mon Sep 17 00:00:00 2001 From: Jonas Tranberg Date: Wed, 21 Dec 2022 21:37:05 +0100 Subject: [PATCH] leave concurrency to callee --- schedule.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/schedule.go b/schedule.go index 09e2f0e..085e39e 100644 --- a/schedule.go +++ b/schedule.go @@ -236,7 +236,7 @@ func (s *ScheduleImpl) On(ctx context.Context, kind string, handler func(ctx con return err } - go handler(ctx, &Task{ + handler(ctx, &Task{ ID: id, Kind: kind, Interval: time.Duration(taskData.Interval) * time.Millisecond,