2 ms·
You can always do something like go func() { ch <- foo }() then your normal program flow won't block. I guess that's what you mean by deadlock. If your pr
by _ak 13y ago
You can always do something like
go func() { ch <- foo }()
then your normal program flow won't block. I guess that's what you mean by deadlock. If your program runs into an actual deadlock, the runtime will detect it, crash the program and show stacktraces.