Class HistoricalScheduler

Hierarchy

Index

Constructor methods

Properties

Methods

Constructor methods

constructor(initialClock: number, comparer: (first: number, second: number) => number): HistoricalScheduler

Parameters

  • initialClock: number
  • comparer: (first: number, second: number) => number

Returns

HistoricalScheduler

Properties

public isEnabled: boolean

Methods

public add(from: TAbsolute in Rx.VirtualTimeScheduler<TAbsolute, TRelative>, by: TRelative in Rx.VirtualTimeScheduler<TAbsolute, TRelative>): TAbsolute in Rx.VirtualTimeScheduler<TAbsolute, TRelative>

Parameters

  • from: TAbsolute in Rx.VirtualTimeScheduler<TAbsolute, TRelative>
  • by: TRelative in Rx.VirtualTimeScheduler<TAbsolute, TRelative>

Returns

TAbsolute in Rx.VirtualTimeScheduler<TAbsolute, TRelative>

public advanceBy(time: TRelative in Rx.VirtualTimeScheduler<TAbsolute, TRelative>)

Parameters

  • time: TRelative in Rx.VirtualTimeScheduler<TAbsolute, TRelative>

public advanceTo(time: TAbsolute in Rx.VirtualTimeScheduler<TAbsolute, TRelative>)

Parameters

  • time: TAbsolute in Rx.VirtualTimeScheduler<TAbsolute, TRelative>

public catch(handler: (exception: any) => boolean): IScheduler

Parameters

  • handler: (exception: any) => boolean

Returns

IScheduler

public catch(handler: (exception: any) => boolean): IScheduler

Parameters

  • handler: (exception: any) => boolean

Returns

IScheduler

public catchException(handler: (exception: any) => boolean): IScheduler

Parameters

  • handler: (exception: any) => boolean

Returns

IScheduler

public catchException(handler: (exception: any) => boolean): IScheduler

Parameters

  • handler: (exception: any) => boolean

Returns

IScheduler

public getNext(): ScheduledItem

Returns

ScheduledItem

public now(): number

Returns

number

public now(): number

Returns

number

public schedule(action: () => void): IDisposable

Parameters

  • action: () => void

Returns

IDisposable

public schedule(action: () => void): IDisposable

Parameters

  • action: () => void

Returns

IDisposable

public scheduleAbsolute(dueTime: TAbsolute in Rx.VirtualTimeScheduler<TAbsolute, TRelative>, action: () => void): IDisposable

Parameters

  • dueTime: TAbsolute in Rx.VirtualTimeScheduler<TAbsolute, TRelative>
  • action: () => void

Returns

IDisposable

public scheduleAbsoluteWithState(state: TState, dueTime: TAbsolute in Rx.VirtualTimeScheduler<TAbsolute, TRelative>, action: (scheduler: Rx.IScheduler, state: TState) => Rx.IDisposable): IDisposable

Parameters

  • state: TState
  • dueTime: TAbsolute in Rx.VirtualTimeScheduler<TAbsolute, TRelative>
  • action: (scheduler: Rx.IScheduler, state: TState) => Rx.IDisposable

Returns

IDisposable

public schedulePeriodic(period: number, action: () => void): IDisposable

Parameters

  • period: number
  • action: () => void

Returns

IDisposable

public schedulePeriodic(period: number, action: () => void): IDisposable

Parameters

  • period: number
  • action: () => void

Returns

IDisposable

public schedulePeriodicWithState(state: TState, period: number, action: (state: TState) => TState): IDisposable

Parameters

  • state: TState
  • period: number
  • action: (state: TState) => TState

Returns

IDisposable

public schedulePeriodicWithState(state: TState, period: number, action: (state: TState) => TState): IDisposable

Parameters

  • state: TState
  • period: number
  • action: (state: TState) => TState

Returns

IDisposable

public scheduleRecursive(action: (action: () => void) => void): IDisposable

Parameters

  • action: (action: () => void) => void

Returns

IDisposable

public scheduleRecursive(action: (action: () => void) => void): IDisposable

Parameters

  • action: (action: () => void) => void

Returns

IDisposable

public scheduleRecursiveWithAbsolute(dueTime: number, action: (action: (dueTime: number) => void) => void): IDisposable

Parameters

  • dueTime: number
  • action: (action: (dueTime: number) => void) => void

Returns

IDisposable

public scheduleRecursiveWithAbsolute(dueTime: number, action: (action: (dueTime: number) => void) => void): IDisposable

Parameters

  • dueTime: number
  • action: (action: (dueTime: number) => void) => void

Returns

IDisposable

public scheduleRecursiveWithAbsoluteAndState(state: TState, dueTime: number, action: (state: TState, action: (state: TState, dueTime: number) => void) => void): IDisposable

Parameters

  • state: TState
  • dueTime: number
  • action: (state: TState, action: (state: TState, dueTime: number) => void) => void

Returns

IDisposable

public scheduleRecursiveWithAbsoluteAndState(state: TState, dueTime: number, action: (state: TState, action: (state: TState, dueTime: number) => void) => void): IDisposable

Parameters

  • state: TState
  • dueTime: number
  • action: (state: TState, action: (state: TState, dueTime: number) => void) => void

Returns

IDisposable

public scheduleRecursiveWithRelative(dueTime: number, action: (action: (dueTime: number) => void) => void): IDisposable

Parameters

  • dueTime: number
  • action: (action: (dueTime: number) => void) => void

Returns

IDisposable

public scheduleRecursiveWithRelative(dueTime: number, action: (action: (dueTime: number) => void) => void): IDisposable

Parameters

  • dueTime: number
  • action: (action: (dueTime: number) => void) => void

Returns

IDisposable

public scheduleRecursiveWithRelativeAndState(state: TState, dueTime: number, action: (state: TState, action: (state: TState, dueTime: number) => void) => void): IDisposable

Parameters

  • state: TState
  • dueTime: number
  • action: (state: TState, action: (state: TState, dueTime: number) => void) => void

Returns

IDisposable

public scheduleRecursiveWithRelativeAndState(state: TState, dueTime: number, action: (state: TState, action: (state: TState, dueTime: number) => void) => void): IDisposable

Parameters

  • state: TState
  • dueTime: number
  • action: (state: TState, action: (state: TState, dueTime: number) => void) => void

Returns

IDisposable

public scheduleRecursiveWithState(state: TState, action: (state: TState, action: (state: TState) => void) => void): IDisposable

Parameters

  • state: TState
  • action: (state: TState, action: (state: TState) => void) => void

Returns

IDisposable

public scheduleRecursiveWithState(state: TState, action: (state: TState, action: (state: TState) => void) => void): IDisposable

Parameters

  • state: TState
  • action: (state: TState, action: (state: TState) => void) => void

Returns

IDisposable

public scheduleRelative(dueTime: TRelative in Rx.VirtualTimeScheduler<TAbsolute, TRelative>, action: () => void): IDisposable

Parameters

  • dueTime: TRelative in Rx.VirtualTimeScheduler<TAbsolute, TRelative>
  • action: () => void

Returns

IDisposable

public scheduleRelativeWithState(state: TState, dueTime: TRelative in Rx.VirtualTimeScheduler<TAbsolute, TRelative>, action: (scheduler: Rx.IScheduler, state: TState) => Rx.IDisposable): IDisposable

Parameters

  • state: TState
  • dueTime: TRelative in Rx.VirtualTimeScheduler<TAbsolute, TRelative>
  • action: (scheduler: Rx.IScheduler, state: TState) => Rx.IDisposable

Returns

IDisposable

public scheduleWithAbsolute(dueTime: number, action: () => void): IDisposable

Parameters

  • dueTime: number
  • action: () => void

Returns

IDisposable

public scheduleWithAbsolute(dueTime: number, action: () => void): IDisposable

Parameters

  • dueTime: number
  • action: () => void

Returns

IDisposable

public scheduleWithAbsoluteAndState(state: TState, dueTime: number, action: (scheduler: Rx.IScheduler, state: TState) => Rx.IDisposable): IDisposable

Parameters

  • state: TState
  • dueTime: number
  • action: (scheduler: Rx.IScheduler, state: TState) => Rx.IDisposable

Returns

IDisposable

public scheduleWithAbsoluteAndState(state: TState, dueTime: number, action: (scheduler: Rx.IScheduler, state: TState) => Rx.IDisposable): IDisposable

Parameters

  • state: TState
  • dueTime: number
  • action: (scheduler: Rx.IScheduler, state: TState) => Rx.IDisposable

Returns

IDisposable

public scheduleWithRelative(dueTime: number, action: () => void): IDisposable

Parameters

  • dueTime: number
  • action: () => void

Returns

IDisposable

public scheduleWithRelative(dueTime: number, action: () => void): IDisposable

Parameters

  • dueTime: number
  • action: () => void

Returns

IDisposable

public scheduleWithRelativeAndState(state: TState, dueTime: number, action: (scheduler: Rx.IScheduler, state: TState) => Rx.IDisposable): IDisposable

Parameters

  • state: TState
  • dueTime: number
  • action: (scheduler: Rx.IScheduler, state: TState) => Rx.IDisposable

Returns

IDisposable

public scheduleWithRelativeAndState(state: TState, dueTime: number, action: (scheduler: Rx.IScheduler, state: TState) => Rx.IDisposable): IDisposable

Parameters

  • state: TState
  • dueTime: number
  • action: (scheduler: Rx.IScheduler, state: TState) => Rx.IDisposable

Returns

IDisposable

public scheduleWithState(state: TState, action: (scheduler: Rx.IScheduler, state: TState) => Rx.IDisposable): IDisposable

Parameters

  • state: TState
  • action: (scheduler: Rx.IScheduler, state: TState) => Rx.IDisposable

Returns

IDisposable

public scheduleWithState(state: TState, action: (scheduler: Rx.IScheduler, state: TState) => Rx.IDisposable): IDisposable

Parameters

  • state: TState
  • action: (scheduler: Rx.IScheduler, state: TState) => Rx.IDisposable

Returns

IDisposable

public sleep(time: TRelative in Rx.VirtualTimeScheduler<TAbsolute, TRelative>)

Parameters

  • time: TRelative in Rx.VirtualTimeScheduler<TAbsolute, TRelative>

public start(): IDisposable

Returns

IDisposable

public stop()

public toDateTimeOffset(duetime: TAbsolute in Rx.VirtualTimeScheduler<TAbsolute, TRelative>): number

Parameters

  • duetime: TAbsolute in Rx.VirtualTimeScheduler<TAbsolute, TRelative>

Returns

number

public toRelative(duetime: number): TRelative in Rx.VirtualTimeScheduler<TAbsolute, TRelative>

Parameters

  • duetime: number

Returns

TRelative in Rx.VirtualTimeScheduler<TAbsolute, TRelative>