Skip to content

Commit

Permalink
Add link to Promise.catch API docs (#910)
Browse files Browse the repository at this point in the history
  • Loading branch information
nojaf authored Sep 5, 2024
1 parent 18d6ec4 commit 52ac336
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pages/docs/manual/latest/promise.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,10 @@ let logAsyncMessage = async () => {

Needless to say, the async / await version offers better ergonomics and less opportunities to run into type issues.

### Handling Rejected Promises

You can handle a rejected promise using the [`Promise.catch()`](./api/core/promise#value-catch) method, which allows you to catch and manage errors effectively.

### Run multiple promises in parallel

In case you want to launch multiple promises in parallel, use `Promise.all`:
Expand Down

0 comments on commit 52ac336

Please sign in to comment.