Skip to content

Provides a method to wait for a given amount of time before returning a promise

Notifications You must be signed in to change notification settings

davidMuir/sleep

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Sleep

Provides a method to wait for a given amount of time before returning a promise

import sleep from '@davidmuir/sleep';

sleep(5000).then(() => {
    console.log('hello world!');
});

About

Provides a method to wait for a given amount of time before returning a promise

Resources

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published