Class: ManualSchedule

ManualSchedule(enabledopt)

new ManualSchedule(enabledopt)

Parameters:
Name Type Attributes Default Description
enabled Boolean <optional>
true Optional. Defaults to true.
Source:

Members

observable :Observable.<T>

Type:
  • Observable.<T>
Source:

Methods

trigger(item) → {this}

The main method to trigger an event on this schedule, that will be observed by the scheduler.
Parameters:
Name Type Description
item T
Deprecated:
  • Use triggerNext() instead. This method will be removed in v3.x!
Source:
Returns:
Type
this

triggerComplete() → {this}

Will trigger this schedule's Observable's complete-function. Note that the Observable will end then (i.e. no new items or complete will be emitted).
Source:
Returns:
Type
this

triggerError(error) → {this}

Will emit an error on this schedule's Observable. Note that the Observable will end then (i.e. no new items or complete will be emitted).
Parameters:
Name Type Description
error any
Source:
Returns:
Type
this

triggerNext(item) → {this}

Calls trigger() and has been added for compatibility reasons to Observable.
Parameters:
Name Type Description
item T
Source:
Returns:
Type
this