Apply timeout to JavaScript Promises
JavaScript promises do not have any time associated with them. We can use a .then() function and wait until the promise is resolved or rejected. We can even await it, and either of those works if the async task finishes in a reasonable amount of time...
wisdomgeek.hashnode.dev3 min read
Hwaryong
Node.js, Vue.js
Great! Thank you!