Skip to content

all

Functionally similar to `Promise.all` or `Promise.allSettled`. If any errors are thrown, all errors are gathered and thrown in an `AggregateError`.

Usage

const [user] = await all([
api.users.create({}),
s3.buckets.create({}),
slack.customerSuccessChannel.sendMessage({}),
]);

Installation

Terminal window
npx atmx add helper all