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 }