some small changes

design
serr 2025-06-12 00:32:55 +03:00
parent fc0c5c43f1
commit 1124172331
1 changed files with 1 additions and 1 deletions

View File

@ -10,8 +10,8 @@ func Ticker(fn func(), interval time.Duration) chan struct{} {
}
ticker := time.NewTicker(interval)
stopChan := make(chan struct{})
fn()
go func() {
fn()
for {
select {
case <-ticker.C: