cookieStore: Async Cookie API
fetchAPI, some APIs like Battery became async, and there are dozens of other examples.
How to Create an Async Function via “new Function”
new Functionmethod:What if you want...
setTimeouts and settling for synchronous operations to doing everything possible to leverage this new async API. Let's check out a handful of awesome Promise API tricks!Cancel a fetch RequestOne problem we...
The Promise object has many useful functions like
race-- stuff we use all the time. One function that many don't know about is
Promise.allSettled, a function that fires when all promises in an array are settled, regardless of whether...
How to Cancel a Fetch Request
fetch...until now. A...
I write a lot of tests for new features within Firefox DevTools. We have hundreds of "mochitests" which open the browser and perform synthetic actions like clicking, typing, and other user actions. I've previously written about
waitForeverwhich essentially halts following actions without locking the...
Promises and Static Values
then on Objects
thenhell, and our code can feel more "top down" again.Async functions require the following syntax:To use
awaitwith a function, the function needs to be declared with...