Class Scheduler

Index

Constructor methods

Properties

Methods

Constructor methods

constructor(now: () => number, schedule: (state: any, action: (scheduler: Rx.IScheduler, state: any) => Rx.IDisposable) => Rx.IDisposable, scheduleRelative: (state: any, dueTime: number, action: (scheduler: Rx.IScheduler, state: any) => Rx.IDisposable) => Rx.IDisposable, scheduleAbsolute: (state: any, dueTime: number, action: (scheduler: Rx.IScheduler, state: any) => Rx.IDisposable) => Rx.IDisposable): Scheduler

Parameters

  • now: () => number
  • schedule: (state: any, action: (scheduler: Rx.IScheduler, state: any) => Rx.IDisposable) => Rx.IDisposable
  • scheduleRelative: (state: any, dueTime: number, action: (scheduler: Rx.IScheduler, state: any) => Rx.IDisposable) => Rx.IDisposable
  • scheduleAbsolute: (state: any, dueTime: number, action: (scheduler: Rx.IScheduler, state: any) => Rx.IDisposable) => Rx.IDisposable

Returns

Scheduler

Properties

public static currentThread: ICurrentThreadScheduler

public static immediate: IScheduler

public static timeout: IScheduler

Methods

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 static normalize(timeSpan: number): number

Parameters

  • timeSpan: number

Returns

number

public now(): number

Returns

number

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

Parameters

  • 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 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 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 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 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 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 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