Explain effective ways to make multiple API calls using Promise.all. Implement promise_all_results(calls), where calls is an array of response descriptors in request order. Each descriptor contains ok and, when successful, value. Return {status: "fulfilled", values: [...]} when every call succeeds. If any call fails, return {status: "rejected", index: i}, where i is the first failed call in input order. The contract models concurrent calls, ordered results, and fail-fast handling without making real network requests.
def promise_all_results(calls):