Options
All
  • Public
  • Public/Protected
  • All
Menu

Module "wordpress-packages/real-queue/lib/queue/fetchStatus"

Index

Variables

Functions

Variables

Let currentlyFetching

currentlyFetching: boolean = false

Let timeout

timeout: ReturnType<typeof setInterval>

Functions

fetchStatus

  • fetchStatus(intervalOrImmediate?: number | true, immediate?: boolean): Promise<void>
  • Fetch the status of the complete queue in a given interval. In general, the queue pulls always the status, but you could change the interval to provide a more "up-to-date" UI to your users.

    You need to listen to the fetch-status event.

    Parameters

    • Default value intervalOrImmediate: number | true = 15000
    • Default value immediate: boolean = false

    Returns Promise<void>

Generated using TypeDoc