graceful

package
v0.0.16 Latest Latest
Warning

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

Go to latest
Published: Nov 15, 2021 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrExpiredGrace = errors.New("grace time expired")

Functions

func WaitGroup

func WaitGroup(ctx context.Context) *wgContext

func WithInterupt

func WithInterupt(ctx context.Context) context.Context

Types

type WG

type WG interface {
	Wait(time.Duration) error
	Go(func() error)
}

func WithWaitGroup

func WithWaitGroup(ctx context.Context) (context.Context, WG)

Jump to

Keyboard shortcuts

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