// WithRestartHandler configures a callback to trigger during graceful restart
// directly before starting the successor process. This allows the current
// process to release holds on resources that the new process will need.
WithRestartHandler configures a callback to trigger during graceful restart
directly before starting the successor process. This allows the current
process to release holds on resources that the new process will need.
// WithRestartHandler configures a callback to trigger during graceful restart // directly before starting the successor process . This allows the current // process to release holds on resources that the new process will need .
func WithRestartHandler(handler func() error) option {
	return func(opts *options) {
		opts.restart = handler
	}
}
func WithRestartHandler ( handler func ( ) error ) option { return func ( opts * options ) { opts . restart = handler } }
WithRestartHandler configures a callback to trigger during graceful restart
directly before starting the successor process.
WithRestartHandler configures a callback to trigger during graceful restart directly before starting the successor process .