Skip to content

Instantly share code, notes, and snippets.

@hkwon
Last active July 29, 2019 02:09
Show Gist options
  • Select an option

  • Save hkwon/ec4884f534a08bd20c8f37cd3ad974ab to your computer and use it in GitHub Desktop.

Select an option

Save hkwon/ec4884f534a08bd20c8f37cd3ad974ab to your computer and use it in GitHub Desktop.

Revisions

  1. hkwon renamed this gist Jul 29, 2019. 1 changed file with 0 additions and 0 deletions.
    File renamed without changes.
  2. hkwon created this gist Jul 29, 2019.
    7 changes: 7 additions & 0 deletions util.js
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,7 @@
    const util = {
    sleep(ms) { // ms: milliseconds
    return new Promise(resolve => setTimeout(resolve, ms));
    }
    };

    module.exports = util;