Function js::jsapi::GetWaitForAllPromise [] [src]

pub unsafe extern "C" fn GetWaitForAllPromise(
    cx: *mut JSContext,
    promises: *const AutoObjectVector
) -> *mut JSObject

Unforgeable version of the JS builtin Promise.all.

Takes an AutoObjectVector of Promise objects and returns a promise that's resolved with an array of resolution values when all those promises ahve been resolved, or rejected with the rejection value of the first rejected promise.

Asserts if the array isn't dense or one of the entries isn't an unwrapped instance of Promise or a subclass.