leave

package
v0.2.1-rc.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 17, 2026 License: Apache-2.0 Imports: 5 Imported by: 0

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL