make `clearTimer` inline

This commit is contained in:
Dmitriy Ryajov 2020-01-08 11:23:01 -06:00
parent 96e0206c27
commit 0d84f273c9
1 changed files with 1 additions and 1 deletions

View File

@ -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)