Documentation
¶
Overview ¶
Package leave is the one road out of a process somebody outside it asked to stop. It keeps the first signal on the ordinary leaving road and reserves a second signal for the person who cannot wait for that road to finish.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func On ¶
func On(leaving func(), handBack func()) (stop func())
On routes every leaving signal to leaving, once, and answers a SECOND one by ending the process at once. handBack may be nil; it is where a door that owns the terminal puts it back before the process goes. The returned function stops listening and puts the signals' own disposition back.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.