Documentation ¶ Index ¶ func Graceful(c context.Context, fn function) error 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. Source Files ¶ View all Source files graceful_shutdown.go Click to show internal directories. Click to hide internal directories.