graceful

package
v0.0.0-...-2fd0e60 Latest Latest
Warning

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

Go to latest
Published: Mar 31, 2024 License: MPL-2.0 Imports: 7 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WaitForShutdown

func WaitForShutdown(s *http.Server, cf context.CancelFunc)

After a SIGINT, SIGTERM, or os.Interrupt, shut down s, wait a bit for requests to clear, then call the passed cancel function. This will let the requests finish before shutting down any other open resources with the passed CancelFunc. This function will block until server shutdown is complete

Types

This section is empty.

Jump to

Keyboard shortcuts

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