graceful

package module
v0.0.0-...-95adaf7 Latest Latest
Warning

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

Go to latest
Published: Jul 1, 2022 License: BSD-3-Clause Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddCloser

func AddCloser(closer func(ctx context.Context) error)

AddCloser add closer.

func Close

func Close()

Close close the app gracefully.

func Start

func Start(fn ...Fn)

Start start the app, if fn is not empty, it will start fn async

Types

type Fn

type Fn func() error

Fn fn is a function with error

Jump to

Keyboard shortcuts

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