Created
March 1, 2021 03:55
-
-
Save RolandWarburton/5fc6d176a9c587bce515d6cda6464993 to your computer and use it in GitHub Desktop.
fake timeout
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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