diff options
Diffstat (limited to 'signal.go')
-rw-r--r-- | signal.go | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -1,5 +1,12 @@ package main +func signalSend(s chan<- struct{}) { + select { + case s <- struct{}{}: + default: + } +} + type Signal struct { enabled AtomicBool C chan struct{} |