stopfd

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Sep 20, 2024 License: Apache-2.0, MIT Imports: 4 Imported by: 0

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) StateFields added in v0.9.0

func (sf *StopFD) StateFields() []string

func (*StopFD) StateLoad added in v0.9.0

func (sf *StopFD) StateLoad(ctx context.Context, stateSourceObject state.Source)

+checklocksignore

func (*StopFD) StateSave added in v0.9.0

func (sf *StopFD) StateSave(stateSinkObject state.Sink)

+checklocksignore

func (*StopFD) StateTypeName added in v0.9.0

func (sf *StopFD) StateTypeName() string

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