shutdowner

package
v0.0.0-...-debf52e Latest Latest
Warning

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

Go to latest
Published: Sep 22, 2022 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CtxWith

func CtxWith(ctx context.Context) context.Context

Types

type Shutdowner

type Shutdowner struct {
	ChShutdowned chan struct{}
	// contains filtered or unexported fields
}

func FromCtx

func FromCtx(ctx context.Context) *Shutdowner

func New

func New(ctx context.Context) *Shutdowner

func (*Shutdowner) AddCloser

func (s *Shutdowner) AddCloser(fn func(ctx context.Context) error)

Jump to

Keyboard shortcuts

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