Skip to content

Latest commit

 

History

History
15 lines (9 loc) · 343 Bytes

README.md

File metadata and controls

15 lines (9 loc) · 343 Bytes

Cancel Context

Let's spawn several long-running goroutines. We will pass the same context to each of these goroutines. With a call to the cancel function, we should be able to stop the execution of all goroutines.

Setup

  1. Run the programs.

    $ make run

Reference