pub unsafe extern "C" fn GetWaitForAllPromise(
cx: *mut JSContext,
promises: HandleObjectVector,
) -> *mut JSObject
Expand description
Unforgeable version of the JS builtin Promise.all.
Takes a HandleObjectVector of Promise objects and returns a promise that’s resolved with an array of resolution values when all those promises have been resolved, or rejected with the rejection value of the first rejected promise.
Asserts that all objects in the promises
vector are, maybe wrapped,
instances of Promise
or a subclass of Promise
.