From a9b138a498e0ba6708ec0b41eac3f168f3cc9c23 Mon Sep 17 00:00:00 2001 From: Jack Tang Date: Sat, 23 May 2020 16:54:32 +0800 Subject: [PATCH] Release 0.1.1 --- docs/index.html | 37 +++---------------------------------- taskqueue.nimble | 2 +- 2 files changed, 4 insertions(+), 35 deletions(-) diff --git a/docs/index.html b/docs/index.html index 5c0741d..2db25e9 100644 --- a/docs/index.html +++ b/docs/index.html @@ -105,8 +105,6 @@

taskqueue

taskQueue: TaskQueue">NoTaskError
  • Action
  • -
  • CancelableAction
  • taskqueue title="newTaskQueue(): TaskQueue">newTaskQueueTaskQueue
  • runAtTaskQueue
  • -
  • runEveryTaskQueue
  • -
  • runAroundTaskQueue
  • lenTaskQueue
  • Types - - -
    CancelableAction = proc (): bool {...}{.gcsafe.}
    -
    - - -
    TaskQueue = ref object
    @@ -227,22 +212,6 @@ 

    Procs

    Schedule a task to run at time - - -
    proc runEvery(q: TaskQueue; firstTime: Timestamp; interval: Timespan;
    -             action: CancelableAction) {...}{.raises: [Exception], tags: [RootEffect].}
    -
    - -Process task at firstTime and then schedule the next one at t = firstTime + i * interval where i is the smallest whole number such that t is larger than current time. - -
    - -
    proc runAround(q: TaskQueue; firstTime: Timestamp; timespan: Timespan;
    -              action: CancelableAction) {...}{.raises: [Exception], tags: [RootEffect].}
    -
    - -Process task at firstTime and then schedule the next one at timespan later than current time. -
    proc len(q: TaskQueue): int {...}{.raises: [], tags: [].}
    @@ -310,7 +279,7 @@

    Templates

    template runEvery(q: TaskQueue; firstTime: Timestamp; interval: Timespan; body: untyped)
    -Tempalate version of runEvery +Process task at firstTime and then schedule the next one at t = firstTime + i * interval where i is the smallest whole number such that t is larger than current time.
    @@ -318,7 +287,7 @@

    Templates

    body: untyped)
    -Template verion of runAround +Process task at firstTime and then schedule the next one timespan later than current time.
    @@ -331,7 +300,7 @@

    Templates

    diff --git a/taskqueue.nimble b/taskqueue.nimble index ccddbf7..bc96ee4 100644 --- a/taskqueue.nimble +++ b/taskqueue.nimble @@ -1,6 +1,6 @@ # Package -version = "0.1.0" +version = "0.1.1" author = "Jack Tang" description = "High precision and high performance task scheduler" license = "MIT"