diff --git a/tests/tjobs.nim b/tests/tjobs.nim index 95f1195..deb3296 100644 --- a/tests/tjobs.nim +++ b/tests/tjobs.nim @@ -24,9 +24,6 @@ proc addNums(jobResult: JobResult[float], a, b: float) = suite "async tests": - # var tp = Taskpool.new(num_threads = 2) # Default to the number of hardware threads. - # var queue = newSignalQueue[float]() - var tp = Taskpool.new(num_threads = 2) # Default to the number of hardware threads. asyncTest "test": diff --git a/tests/tqueues.nim b/tests/tqueues.nim index 2a6df00..0f24dc5 100644 --- a/tests/tqueues.nim +++ b/tests/tqueues.nim @@ -7,12 +7,8 @@ import taskpools import apatheia/queues -## todo: setup basic async + threadsignal + taskpools example here -## - proc addNums(a, b: float, queue: SignalQueue[float]) = - os.sleep(500) - echo "adding: ", a, " + ", b + os.sleep(50) discard queue.send(a + b) suite "async tests":