From e86a7f6727212e4b954c4c7e9f96cfba7399baf1 Mon Sep 17 00:00:00 2001 From: Jaremy Creechley Date: Tue, 13 Feb 2024 22:59:18 -0700 Subject: [PATCH] got together --- tests/ttasks.nim | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/tests/ttasks.nim b/tests/ttasks.nim index 32462e2..aa86609 100644 --- a/tests/ttasks.nim +++ b/tests/ttasks.nim @@ -11,14 +11,13 @@ import apatheia/tasks ## todo: setup basic async + threadsignal + taskpools example here ## - proc addNums(a, b: float): float {.asyncTask.} = - os.sleep(500) + os.sleep(100) echo "adding: ", a, " + ", b return a + b proc addNumValues(vals: openArray[float]): float {.asyncTask.} = - os.sleep(500) + os.sleep(100) result = 0.0 for x in vals: result += x