SchedulerLike

SCHEDULER INTERFACES

interface SchedulerLike { now(): number schedule<T>(work: (this: SchedulerAction<T>, state?: T) => void, delay?: number, state?: T): Subscription }

Class Implementations

  • Scheduler

Methods

now()

now(): number

Parameters

There are no parameters.

Returns

number

schedule()

schedule<T>(work: (this: SchedulerAction<T>, state?: T) => void, delay?: number, state?: T): Subscription

Parameters

work

Type: (this: SchedulerAction, state?: T) => void.

delay

Optional. Default is undefined.

Type: number.

state

Optional. Default is undefined.

Type: T.

Returns

Subscription