Returns a scheduler that wraps the original scheduler, adding exception handling for scheduled actions.
Returns a scheduler that wraps the original scheduler, adding exception handling for scheduled actions.
(Function): Handler that's run if an exception is caught. The error will be rethrown if the handler returns false.
(Scheduler): Wrapper around the original scheduler, enforcing exception handling.
Rx.Scheduler.prototype.catch(handler)
Gets the current time according to the Scheduler implementation.
Gets the current time according to the Scheduler implementation.
(Number): The current time according to the Scheduler implementation.
Rx.Scheduler.prototype.now()
Schedules an action to be executed with state.
Schedules an action to be executed with state.
(Any): State passed to the action to be executed.
(Function): Action to execute with the following arguments:
(Disposable): The disposable object used to cancel the scheduled action (best effort).
Rx.Scheduler.prototype.schedule(state, action)
Schedules an action to be executed at the specified relative due time.
Schedules an action to be executed at the specified relative due time. Note this only works with the built-in Rx.Scheduler.default scheduler, as the rest will throw an exception as the framework does not allow for blocking.
(Any): State passed to the action to be executed.
(Number | Date): Relative or absolute time at which to execute the action.
(Function): Action to execute with the following arguments:
(Disposable): The disposable object used to cancel the scheduled action (best effort).
Rx.Scheduler.prototype.scheduleFuture(state, dueTime, action)
Schedules a periodic piece of work by dynamically discovering the scheduler's capabilities.
Schedules a periodic piece of work by dynamically discovering the scheduler's capabilities. The periodic task will be scheduled using window.setInterval for the base implementation.
(Any): State passed to the action to be executed.
(Number): Period for running the work periodically in ms.
(Function): Action to execute with the following parameters. Note that the return value from this function becomes the state in the next execution of the action.
(Disposable): The disposable object used to cancel the scheduled action (best effort).
Rx.Scheduler.prototype.schedulePeriodic(state, period, action)
Schedules an action to be executed with state.
Schedules an action to be executed with state.
(Any): State passed to the action to be executed.
(Function): Action to execute with the following arguments:
(Disposable): The disposable object used to cancel the scheduled action (best effort).
Rx.Scheduler.prototype.scheduleRecursive(state, action)
Schedules an action to be executed recursively at a specified absolute or relative due time.
Schedules an action to be executed recursively at a specified absolute or relative due time. Note this only works with the built-in Rx.Scheduler.timeout scheduler, as the rest will throw an exception as the framework does not allow for blocking.
(Any): State passed to the action to be executed.
(Number): Absolute time at which to execute the action for the first time.
(Function): Action to execute with the following arguments:
(Disposable): The disposable object used to cancel the scheduled action (best effort).
Rx.Scheduler.prototype.scheduleRecursiveFuture(state, dueTime, action)
Represents a Scheduler