signal

package
v0.0.0-...-9648343 Latest Latest
Warning

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

Go to latest
Published: Aug 7, 2021 License: BSD-3-Clause Imports: 0 Imported by: 0

Documentation

Overview

Package signal contains helpers for common signalling operations.

Index

Constants

This section is empty.

Variables

View Source
var Always <-chan struct{}

Always is a signal channel that never blocks when read from.

View Source
var Never <-chan struct{} = New()

Never is a signal channel that always blocks when read from.

Functions

func New

func New() chan struct{}

New creates a new signalling channel.

func Wakeup

func Wakeup(w chan struct{})

Wakeup sends a signal to a wakeup channel.

Types

This section is empty.

Jump to

Keyboard shortcuts

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