Options
All
  • Public
  • Public/Protected
  • All
Menu

simple-delay — Reference

Index

Functions

Const callSetTimeout

  • callSetTimeout(setTimeout: (fn: () => void, ms: number) => void, delay: number): Promise<void>
  • Create a promise that resolves after a certain amount of time

    Parameters

    • setTimeout: (fn: () => void, ms: number) => void
        • (fn: () => void, ms: number): void
        • Parameters

          • fn: () => void
              • (): void
              • Returns void

          • ms: number

          Returns void

    • delay: number

    Returns Promise<void>

Const simpleDelay

  • simpleDelay(delay: number): Promise<void>
  • Create a promise that resolves after a certain amount of time

    Parameters

    • delay: number

    Returns Promise<void>

Generated using TypeDoc