mirror of
https://github.com/logos-storage/apatheia.git
synced 2026-01-11 09:23:07 +00:00
got together
This commit is contained in:
parent
c95fc0875f
commit
856a0b2e1c
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user