Nighttime Possum Meandering

    @zcorky/delay
    TypeScript icon, indicating that this package has built-in type declarations

    1.0.1 • Public • Published

    delay Build Status

    A simple promise delay

    Install

    $ npm install @zcorky/delay
    

    Usage

    const delay = require('@zcorky/delay').delay;
    // import { delay } from '@zcorky/delay'; // ts or es6
    
    function bar() {
      console.log('time: ', Date.now());
    }
    
    (async () => {
    	bar();
    
    	await delay(100);
    
    	// Executed 100 milliseconds later
    	baz();
    })();

    Related

    • delay - Delay a promise a specified amount of time

    License

    MIT © Moeover

    Keywords

    none

    Install

    npm i @zcorky/delay

    DownloadsWeekly Downloads

    150

    Version

    1.0.1

    License

    MIT

    Unpacked Size

    3.1 kB

    Total Files

    5

    Last publish

    Collaborators

    • uniquecolesmith