Options
All
  • Public
  • Public/Protected
  • All
Menu

mighty-promise

Index

Variables

Const DAY

DAY: number = ...

Const FRAME

FRAME: number = ...

Const HOUR

HOUR: number = ...

Const MINUTE

MINUTE: number = ...

Const SECOND

SECOND: 1000 = 1000

Functions

delay

  • delay(ms: number): Promise<void>
  • Wait for a duration of time (in ms)

    Parameters

    • ms: number

      await time in ms

    Returns Promise<void>

retry

  • retry(callback: () => Promise<unknown> | unknown, __namedParameters: { sleepTimeout?: number; times?: number }): Promise<void>
  • Parameters

    • callback: () => Promise<unknown> | unknown
        • (): Promise<unknown> | unknown
        • Returns Promise<unknown> | unknown

    • __namedParameters: { sleepTimeout?: number; times?: number }
      • Optional sleepTimeout?: number
      • Optional times?: number

    Returns Promise<void>

Generated using TypeDoc