Documentation - v7.17.0
    Preparing search index...

    Function setTimeout

    • Zone.js-safe wrapper for setTimeout.

      Looks up the original setTimeout via getZoneJsOriginalValue to bypass any Zone.js patch, preventing the resource-exhaustion issues that Zone.js-patched timers can cause.

      Parameters

      • callback: () => void

        Function to invoke after delay milliseconds.

      • Optionaldelay: number

        Delay in milliseconds (defaults to 0).

      Returns number

      A TimeoutId that can be passed to clearTimeout.