Skip to content

Latest commit

 

History

History

cancel

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

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