This package has been deprecated

    Author message:

    smartdelay has been deprecated in favour of @pushrocks/smartdelay - please upgrade asap!!!

    smartdelay
    TypeScript icon, indicating that this package has built-in type declarations

    1.0.4 • Public • Published

    smartdelay

    timeouts for the async/await era, written in TypeScript

    Availabililty

    npm git git docs

    Status for master

    build status coverage report npm downloads per month Dependency Status bitHound Dependencies bitHound Code TypeScript node JavaScript Style Guide

    Usage

    Use TypeScript for best in class instellisense.

    import * as smartdelay from 'smartdelay'
     
    (async () => {
        await smartdelay.delayFor('3000') // excution will halt here 3 seconds for this function scope BUT NOT BLOCK anything else
        console.log()
    })()

    npm

    Keywords

    none

    Install

    npm i smartdelay

    DownloadsWeekly Downloads

    4

    Version

    1.0.4

    License

    MIT

    Last publish

    Collaborators

    • lossless