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

SchedulerAction

interface stable

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

  // inherited from index/Subscription
  static EMPTY: (() => {...})
  constructor(initialTeardown?: () => void)
  closed: false
  unsubscribe(): void
  add(teardown: TeardownLogic): void
  remove(teardown: Subscription | Unsubscribable | (() => void)): void
}

Methods

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

Parameters

state T

Optional. Default is undefined.

delay number

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