Skip to content

ekschro/timeout-promisified

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 

Repository files navigation

timeout-promisified

Delay inside asynchronous code...

Installation

  yarn add timeout-promisified

Example

  const { timeout } = require('timeout-promisified');

  (async () => {
    console.log('Hello, ');
    await timeout(10000); // Delay 10 seconds (10000 milliseconds)
    console.log('World!');
  })();

About

Delay asynchronously with promises.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published