> just terminating a goroutine isn't safe with respect to I/O and defer chains.
Agreed. The idea is to panic() if a goroutine has to be forcibly terminated due to GC, instead of a slow leak. Requires more thought though.
Agreed. The idea is to panic() if a goroutine has to be forcibly terminated due to GC, instead of a slow leak. Requires more thought though.
Or even one ctx per goroutine and cancel them dynamically according to whatever logic.