leave

package
v0.5.2-rc.1 Latest Latest
Warning

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

Go to latest
Published: Oct 1, 2026 License: Apache-2.0 Imports: 5 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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