mirror of
https://github.com/UofCBaja/BajaUofCWebsite.git
synced 2025-07-10 05:07:13 -06:00
18 lines
476 B
JavaScript
18 lines
476 B
JavaScript
|
|
function fakeDelay(ms) {
|
|
/*
|
|
useful for testing allows for a fake response, allow us to see what the program does while waiting for data from the backend
|
|
REQUIRES:
|
|
time in milliseconds
|
|
|
|
needs a line like this to run
|
|
await fakeDelay(5000);
|
|
PROMISES:
|
|
nothing
|
|
Develop in part by: Brock
|
|
Contact: darkicewolf50@gmial.com
|
|
*/
|
|
return new Promise(resolve => setTimeout(resolve, ms));
|
|
}
|
|
|
|
export default fakeDelay; |