Caplin Trader 4.8.0

Interface: module:caplin/core/scheduler/ThreadQueueListener

module:caplin/core/scheduler/ThreadQueueListener

Interface implemented by classes wishing to know the current number of pending and due threads awaiting processing.

Methods

onThreadQueueUpdate(nDueTimers, nTotalTimers)

Call-back that fires each time a thread timer is processed, and the thread queue information changes.
Parameters:
Name Type Description
nDueTimers int The number of registered timers (including intervals) that are now ready to be processed.
nTotalTimers int The total number of registered timers and intervals — both overdue, and not yet requiring processing.