Once the context is canceled, the loops will exit, so there is no need to explicitly Stop(). We just need to Wait() for the loops to exit. |
||
|---|---|---|
| .. | ||
| main.go | ||
| signal_nix.go | ||
| signal_windows.go | ||
Once the context is canceled, the loops will exit, so there is no need to explicitly Stop(). We just need to Wait() for the loops to exit. |
||
|---|---|---|
| .. | ||
| main.go | ||
| signal_nix.go | ||
| signal_windows.go | ||