Files
Dušan Borovčanin ef5c253c51 SMQ-3399 - Unify Magistrala and SuperMQ (#3400)
Signed-off-by: nyagamunene <stevenyaga2014@gmail.com>
Signed-off-by: dusan <borovcanindusan1@gmail.com>
Co-authored-by: Steve Munene <stevenyaga2014@gmail.com>
2026-04-01 09:55:11 +02:00

24 lines
352 B
Go

// Copyright (c) Abstract Machines
// SPDX-License-Identifier: Apache-2.0
package ticker
import "time"
type Ticker interface {
Tick() <-chan time.Time
Stop()
}
type timeTicker struct {
*time.Ticker
}
func NewTicker(d time.Duration) Ticker {
return &timeTicker{time.NewTicker(d)}
}
func (t *timeTicker) Tick() <-chan time.Time {
return t.C
}