W3cubDocs

/RxJS

SchedulerLike

interface stable

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

Parameters

There are no parameters.

Returns

number

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

© 2015–2018 Google, Inc., Netflix, Inc., Microsoft Corp. and contributors.
Code licensed under an Apache-2.0 License. Documentation licensed under CC BY 4.0.
https://rxjs.dev/api/index/interface/SchedulerLike