From 384a975cc7e6b772707a2fcb2ba558a28b708b5e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=99=BD=E8=8C=B6=E6=B8=85=E6=AC=A2?= Date: Sat, 25 Jun 2022 19:44:05 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BB=BB=E5=8A=A1=E8=B0=83=E5=BA=A6=E5=90=8E?= =?UTF-8?q?=EF=BC=8C=E5=A2=9E=E5=8A=A0=E5=9B=9E=E8=B0=83=E8=A7=A6=E5=8F=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- task.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/task.go b/task.go index 937af1f..f9b0e28 100644 --- a/task.go +++ b/task.go @@ -117,9 +117,11 @@ func (d *dispatch) Run(ctx context.Context, cfg *Config) *Result { } } result.Data, result.Err = taskInstance.Execute(ctx, cfg) + _ = taskInstance.Callback(result) }() } else { result.Data, result.Err = taskInstance.Execute(ctx, cfg) + _ = taskInstance.Callback(result) } return result }