Skip to content

Commit 52ac336

Browse files
authored
Add link to Promise.catch API docs (#910)
1 parent 18d6ec4 commit 52ac336

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

pages/docs/manual/latest/promise.mdx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,10 @@ let logAsyncMessage = async () => {
7777

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

80+
### Handling Rejected Promises
81+
82+
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.
83+
8084
### Run multiple promises in parallel
8185

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

0 commit comments

Comments
 (0)