This commit is contained in:
Jaremy Creechley 2024-02-14 22:02:46 -07:00
parent f1b953db81
commit ba17d8090e
2 changed files with 1 additions and 8 deletions

View File

@ -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":

View File

@ -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":