Main type for scheduling work. See withScheduler or withScheduler_ for ways to construct and use this data type.
Constructors
Scheduler_numWorkers :: !Int_scheduleWorkId :: (WorkerId -> ST s a) -> ST s ()_terminate :: Early a -> ST s a_waitForCurrentBatch :: ST s (Results a)_earlyResults :: ST s (Maybe (Results a))_currentBatchId :: ST s BatchIdReturns an opaque identifier for current batch of jobs, which can be used to either cancel the batch early or simply check if the batch has finished or not.
_cancelBatch :: BatchId -> Early a -> ST s BoolStops current batch and cancells all the outstanding jobs and the ones that are currently in progress.
_batchEarly :: ST s (Maybe (Early a))