got together

This commit is contained in:
Jaremy Creechley 2024-02-13 22:54:53 -07:00
parent c95fc0875f
commit 856a0b2e1c
No known key found for this signature in database
GPG Key ID: 4E66FB67B21D3300

View File

@ -21,6 +21,7 @@ suite "async tests":
var tp = Taskpool.new(num_threads = 2) # Default to the number of hardware threads.
asyncTest "test":
var jobs = newJobQueue[float](taskpool = tp)
echo "\nstart"
let res = await jobs.submit(addNums(1.0, 2.0,))
echo "result: ", res.repr