Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save nafeu/0277ead85511e4a6f87da3a788485a20 to your computer and use it in GitHub Desktop.
Save nafeu/0277ead85511e4a6f87da3a788485a20 to your computer and use it in GitHub Desktop.
const result = await delay(() => '[RETURN VALUE]', 1000);
console.log(result); // [RETURN VALUE] in result
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment