From 0d84f273c9c74974412c50aa5a8ba6d94b97593b Mon Sep 17 00:00:00 2001 From: Dmitriy Ryajov Date: Wed, 8 Jan 2020 11:23:01 -0600 Subject: [PATCH] make `clearTimer` inline --- chronos/asyncloop.nim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chronos/asyncloop.nim b/chronos/asyncloop.nim index 8c2b099..d48f9dc 100644 --- a/chronos/asyncloop.nim +++ b/chronos/asyncloop.nim @@ -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)