talostrading / sonic

Sonic is a Go library for network and I/O programming that provides developers with a consistent asynchronous model, with a focus on achieving the lowest possible latency and jitter in Go.
MIT License
702 stars 17 forks source link

Fixed issue with ScheduleRepeating not working if timer Cancelled bef… #84

Closed avgoustinos-kadis closed 1 year ago

avgoustinos-kadis commented 1 year ago

Had a problem with the Timer triggering only once when ScheduleRepeating() was called after Cancel() was called from outside the timer's callback (before the timer was scheduled). This PR fixes it

sergiu128 commented 1 year ago

Nice one @avgoustinos-kadis !!! Thank you! First contribution! 🚀🚀🚀