Skip to content

Instantly share code, notes, and snippets.

@RolandWarburton
Created March 1, 2021 03:55
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 RolandWarburton/5fc6d176a9c587bce515d6cda6464993 to your computer and use it in GitHub Desktop.
Save RolandWarburton/5fc6d176a9c587bce515d6cda6464993 to your computer and use it in GitHub Desktop.
fake timeout
const fakeTimeout = async () => {
return await new Promise((resolve) =>
setTimeout(() => {
resolve({ success: true });
}, 1000)
);
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment