Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

promise all

var p1 = Promise.resolve(3);
var p2 = 1337;
var p3 = new Promise((resolve, reject) => {
  setTimeout(resolve, 100, "foo");
}); 
const iterable = [p1, p2, p3];

Promise.all(iterable) 	
Source by developer.mozilla.org #
 
PREVIOUS NEXT
Tagged: #promise
ADD COMMENT
Topic
Name
3+7 =