graceful-exit

command
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2024 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