This commit is contained in:
Jaremy Creechley 2024-02-21 22:30:19 -07:00
parent ddfb8a6f69
commit 760f13a7d0

View File

@ -51,12 +51,10 @@ proc runTest(tp: TaskPool, sig: ThreadSignalPtr) {.async.} =
# await wait(sig)
suite "async tests":
var tp = Taskpool.new(num_threads = 2) # Default to the number of hardware threads.
let sig = ThreadSignalPtr.new().get()
asyncTest "test":
try:
await runTest(tp, sig)
except AsyncTimeoutError:
@ -64,6 +62,3 @@ suite "async tests":
GC_fullCollect()
os.sleep(2_000)
echo "Done"