W3cubDocs

/RxJS

SchedulerAction

interface stable

interface SchedulerAction<T> extends Subscription {
  schedule(state?: T, delay?: number): Subscription

  // inherited from index/Subscription
  static EMPTY: Subscription
  constructor(unsubscribe?: () => void)
  closed: [object Object]
  unsubscribe(): void
  add(teardown: TeardownLogic): Subscription
  remove(subscription: Subscription): void
}

Methods

schedule(state?: T, delay?: number): Subscription

Parameters

state

Optional. Default is undefined.

Type: T.

delay

Optional. Default is undefined.

Type: number.

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/SchedulerAction