// Close closes all timers and goroutines,
// note that this function is equivalent of cancelling
// of the context passed in configuration and can be
// used interchangeably
Close closes all timers and goroutines,
note that this function is equivalent of cancelling
of the context passed in configuration and can be
used interchangeably
// Close closes all timers and goroutines // note that this function is equivalent of cancelling // of the context passed in configuration and can be // used interchangeably
func (h *Heartbeat) Close() error {
	h.cancel()
	return nil
}
func ( h * Heartbeat ) Close ( ) error { h . cancel ( ) return nil }
Close closes all timers and goroutines,
note that this function is equivalent of cancelling
of the context passed in configuration and can be
used interchangeably
Close closes all timers and goroutines note that this function is equivalent of cancelling of the context passed in configuration and can be used interchangeably
// note that close does not clean up resources, // because it is unaware of heartbeat actual state, // Run() could may as well be creating new keep aliver // while this function attempts to close it, // so instead it relies on Run() loop to clean up after itself