Codebase list golang-github-vbauerster-mpb / a2999f8
cancel.gif update Vladimir Bauer 9 years ago
2 changed file(s) with 5 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
100100
101101 ### Cancel
102102
103 To cancel use either
104 [WithCancel](https://godoc.org/github.com/vbauerster/mpb#Progress.WithCancel) or
105 [WithContext](https://godoc.org/github.com/vbauerster/mpb#Progress.WithContext)
106 method. The last one requires Go 1.7
107
103108 ![cancel.gif](example/gifs/cancel.gif)
104109
105110 The source code: [example/cancel/main.go](example/cancel/main.go)
Binary diff not shown