mirror of
https://github.com/status-im/nim-chronos.git
synced 2025-01-18 23:31:13 +00:00
make clearTimer
inline
This commit is contained in:
parent
96e0206c27
commit
0d84f273c9
@ -741,7 +741,7 @@ proc setTimer(at: Moment, cb: CallbackFunc, udata: pointer = nil): TimerCallback
|
||||
function: AsyncCallback(function: cb, udata: udata))
|
||||
loop.timers.push(result)
|
||||
|
||||
proc clearTimer(timer: TimerCallback) =
|
||||
proc clearTimer(timer: TimerCallback) {.inline.} =
|
||||
timer.deleted = true
|
||||
|
||||
proc addTimer*(at: Moment, cb: CallbackFunc, udata: pointer = nil)
|
||||
|
Loading…
x
Reference in New Issue
Block a user