From 407b322664c958a42c53322a2599dc9a967a0722 Mon Sep 17 00:00:00 2001 From: Quaternions Date: Thu, 19 Oct 2023 22:36:26 -0700 Subject: [PATCH] note about using functions for input and output --- src/worker.rs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/worker.rs b/src/worker.rs index 5c97763..8130c03 100644 --- a/src/worker.rs +++ b/src/worker.rs @@ -29,6 +29,12 @@ enum Output{ Buffered(PoolOrdering),//outputs are held back internally if they are out of order and order is demanded } +//It would be possible to implement all variants +//with a query input function and callback output function but I'm not sure if that's worth it. +//Immediate = Condvar +//Queued = receiver.recv() +//a callback function would need to use an async runtime! + //realtime output is an arc mutex of the output value that is assigned every time a worker completes a job //buffered output produces a receiver object that can be passed to the creation of another worker //when ordering is requested, output is ordered by the order each thread is run