Skip to content

Instantly share code, notes, and snippets.

@JaeYeopHan
Created March 29, 2018 05:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save JaeYeopHan/4b435cd7a3bfe623b1e8533cafaf3b05 to your computer and use it in GitHub Desktop.
Save JaeYeopHan/4b435cd7a3bfe623b1e8533cafaf3b05 to your computer and use it in GitHub Desktop.
export const delay = (time: number) => {
return new Promise((resolve, reject) => {
setTimeout(resolve, time);
});
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment