Skip to content

Latest commit

 

History

History
11 lines (8 loc) · 209 Bytes

README.md

File metadata and controls

11 lines (8 loc) · 209 Bytes

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!');
});