About 7,990 results
Open links in new tab
  1. The Race to Resolution: Understand how Promise.race can determine the outcome based on the fastest promise. Whether you're a seasoned developer or just starting out, these exercises …

  2. This code shows what happens if you pass in an object to Promise.resolve() that has a then() method on it; the ES6 designers decided that the way to identify other types of "promise" …

  3. Promise: standard interface for handling asynchronous code Represents something that will happen later (or is happening in background) Once finished, the promise "settles" It can be in …

  4. Most often, Promises will be generated by an API function (e.g., fetch) and returned to you. But you can also create your own Promise. // fulfilled successfully. // error, rejected. // do …

  5. May 23, 2018 · Solution 3 - Using two-pronged ‘facade’ functions that both initiate background web browser work and return a placeholder object (promise) immediately in JavaScript

  6. Properties Promise.length, Promise.prototype Methods Promise.all(iterable), Promise.race(iterable), Promise.reject(reason), Promise.resolve(value) HTML Cheat Sheet is …

  7. Most common way to chain promises. Every .then() returns a new promise which wraps the previous one. Even if the given callback doesn’t return a promise. This means Promises don’t …