graceful-exit

command
v0.0.0-...-59f5a4e Latest Latest
Warning

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

Go to latest
Published: Nov 5, 2020 License: MIT Imports: 2 Imported by: 0

README

graceful-exit

This example shows how to add jobs before app stop by outer signal accidentally.

step
  • go run main.go
  • ctrl + c
output
receive signal: interrupt
prepare to stop server
clear online cache
job2 done

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

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