Y
Hacker News
new
|
ask
|
show
|
jobs
by
swagonomixxx
1445 days ago
You can easily cancel worker goroutines in Go using contexts and their associated cancel functions (listen on ctx.Done() in a select statement).