stopfd

package
v0.0.0-...-9e0e42b Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2024 License: Apache-2.0, MIT Imports: 2 Imported by: 4

Documentation

Overview

Package stopfd provides an type that can be used to signal the stop of a dispatcher.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type StopFD

type StopFD struct {
	EFD int
}

StopFD is an eventfd used to signal the stop of a dispatcher.

+stateify savable

func New

func New() (StopFD, error)

New returns a new, initialized StopFD.

func (*StopFD) Stop

func (sf *StopFD) Stop()

Stop writes to the eventfd and notifies the dispatcher to stop. It does not block.

Jump to

Keyboard shortcuts

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