Y
Hacker News
new
|
ask
|
show
|
jobs
by
dagss
820 days ago
The Go way is to pass the long running goroutines a different ctx from the short running.
Or even one ctx per goroutine and cancel them dynamically according to whatever logic.