rxjs / latest / api / index / interface / schedulerlike.html

SchedulerLike

interface stable

SCHEDULER INTERFACES

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

  // inherited from index/TimestampProvider
  now(): number
}

Class Implementations

Methods

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

Parameters

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

Optional. Default is undefined.

Returns

Subscription

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

Parameters

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

Optional. Default is undefined.

state T

Optional. Default is undefined.

Returns

Subscription

© 2015–2022 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