Cancel initiates a Cancel on the job, but allows it to keep running to do so gracefully. Read from Done() to be notified when the job completes.
()
| 256 | // Cancel initiates a Cancel on the job, but allows it to keep running to do so gracefully. Read from Done() to |
| 257 | // be notified when the job completes. |
| 258 | func (r *Runner) Cancel() { |
| 259 | r.cancel() |
| 260 | } |
| 261 | |
| 262 | func (r *Runner) Done() <-chan struct{} { |
| 263 | return r.done |