garm/workers/scaleset
Gabriel Adrian Samfira b23bca73bc Fix sleepWithCancel and ensure closed channel
* time.NewTicker will panic if the duration is 0. Make it return
early if duration is 0.
* Return a pre-closed channel in Wait() instead of nil. Ensures receiver
will not block forever.

Signed-off-by: Gabriel Adrian Samfira <gsamfira@cloudbasesolutions.com>
2025-07-07 04:54:10 +00:00
..
controller.go Add copyright header 2025-05-20 09:43:29 +00:00
controller_watcher.go Add copyright header 2025-05-20 09:43:29 +00:00
interfaces.go Add copyright header 2025-05-20 09:43:29 +00:00
scaleset.go Fix sleepWithCancel and ensure closed channel 2025-07-07 04:54:10 +00:00
scaleset_helper.go Add copyright header 2025-05-20 09:43:29 +00:00
scaleset_listener.go Fix sleepWithCancel and ensure closed channel 2025-07-07 04:54:10 +00:00
util.go Add copyright header 2025-05-20 09:43:29 +00:00