shutdown

package
v0.0.0-...-3ffe2d3 Latest Latest
Warning

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

Go to latest
Published: Jul 24, 2022 License: MIT Imports: 3 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Graceful

func Graceful(c context.Context, fn function) error

Graceful is a blocking function that will spawn a new goroutine to process your function. When the user cancel the current context or when the user type Ctrl+C in the keyboard, it'll notify the function context to cancel anD return.

Types

This section is empty.

Jump to

Keyboard shortcuts

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