Could you explain the use of the defer function with the signal.Stop(c)?
Mathieu Hinderyckx
1

You’re right, everything is stopped and cleaned up anyway. I wrote it like that so that the code can be used in other contexts without being changed. Also, if I omitted it, someone would tell me to add it :)