sleep | WebHare Platform SDK
WebHare Platform SDK
    Preparing search index...

    Function sleep

    • A promise that sleeps for the specified number of milliseconds

      Parameters

      • duration: WaitPeriod

        Relative (milliseconds, but not Infinity) or absolute (Date) wait duration. May not be Infinity

      • Optionaloptions: { signal?: AbortSignal }

        Options - signal to set an AbortSignal which will canel this sleep

      Returns Promise<void>