diff --git a/README.md b/README.md index 2fd0811..c1f2940 100644 --- a/README.md +++ b/README.md @@ -101,6 +101,11 @@ ### Cancel +To cancel use either +[WithCancel](https://godoc.org/github.com/vbauerster/mpb#Progress.WithCancel) or +[WithContext](https://godoc.org/github.com/vbauerster/mpb#Progress.WithContext) +method. The last one requires Go 1.7 + ![cancel.gif](example/gifs/cancel.gif) The source code: [example/cancel/main.go](example/cancel/main.go) diff --git a/example/gifs/cancel.gif b/example/gifs/cancel.gif index 79478fc..fd08e3a 100644 Binary files a/example/gifs/cancel.gif and b/example/gifs/cancel.gif differ