I may be worthwhile mentioning that the second goroutine is executed (as opposed to the comments). Only execute() is gone and thus the print is not happening.
If the second goroutine would be an "endless" loop without checking ctx.Done(), it would be leaked.
I may be worthwhile mentioning that the second goroutine is executed (as opposed to the comments). Only
execute()
is gone and thus the print is not happening.If the second goroutine would be an "endless" loop without checking
ctx.Done()
, it would be leaked.Thank you so much for your point out! I'm a little busy with work right now, so I'll watch it this weekend.
Is it a forgotten sender?