diff --git a/rx/schedulers.nim b/rx/schedulers.nim index 0781624..d223192 100644 --- a/rx/schedulers.nim +++ b/rx/schedulers.nim @@ -8,10 +8,10 @@ type Scheduler* = object template millis(t: TimeInterval): auto = t.milliseconds + 1000 * t.seconds # fix me -template schedule*(s: Scheduler, p: expr) = +template schedule*(s: Scheduler, p: untyped) = s.scheduleNow(p) -template schedule*(s: Scheduler, p, t: expr) = +template schedule*(s: Scheduler, p, t: untyped) = s.scheduleLater(p, t) proc immediateScheduler*(): Scheduler = diff --git a/test.nim b/test.nim index 9e89107..3ab6a0a 100644 --- a/test.nim +++ b/test.nim @@ -1,7 +1,6 @@ import unittest, rx, future, times type - UnexpectedOnError = object of Exception TR[A] = object elems: seq[A] completed: bool