ynishi / go-data-ope

simple data operation with go.
Apache License 2.0
0 stars 0 forks source link

manage contexts #9

Closed ynishi closed 6 years ago

ynishi commented 6 years ago

To cancel task from outside, and decide its id, add contexts manage.

ynishi commented 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.

ynishi commented 6 years ago

added CtxTask