Closed ynishi closed 6 years ago
To support cancel each task, developer who implements interface support cancel with context. So, it might be good each methods have context arg explicitly.
Other way is including context in request struct, but batch mostly more useful to support cancel.
added CtxTask
To cancel task from outside, and decide its id, add contexts manage.