Object - streams : Scheduler

The Scheduler object is responsible for generating streams:TIMER events at the given timestamp. Once the event is generated, the timer event is passed to the provided processFunc function pointer. The function pointer is the process function of the target processor, to which the timer event should be sent.

Constructor

__init

( function(StreamEvent[]) returns (()) processFunc)

Methods

notifyAt

Schedule to send a timer events at the given timestamp.

Parameters

  • timestamp int
  • The timestamp at which the timer event will be generated and passed to the provided processFunc.

sendTimerEvents

()

returns error?

Creates the timer events.

  • Return Type

    (error?)
  • Returns error if sending timer events failed.