Sleep

    0

    13

    My JavaScript recipes

    Sleep for a given period of time in milliseconds

    Shortcut: sleep

    await new Promise(r => setTimeout(r, timeToWaitInMs));
    Codiga Logo
    Codiga Hub
    • Rulesets
    • Playground
    • Snippets
    • Cookbooks
    soc-2 icon

    We are SOC-2 Compliance Certified

    G2 high performer medal

    Codiga – All rights reserved 2022.