Skip to content

Commit

Permalink
Adds the catch operator to the README
Browse files Browse the repository at this point in the history
  • Loading branch information
benlesh committed Nov 21, 2023
1 parent 54008be commit d843a6f
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -368,6 +368,8 @@ interface Observable {
Observable take(unsigned long long);
Observable drop(unsigned long long);
Observable flatMap(Mapper mapper);
Observable catch(Mapper mapper);

Promise<sequence<any>> toArray(optional PromiseOptions options);
Promise<undefined> forEach(Visitor callback, optional PromiseOptions options);

Expand Down Expand Up @@ -501,6 +503,10 @@ If the subscriber has already been aborted (i.e., `subscriber.signal.aborted` is

We propose the following operators in addition to the `Observable` interface:

- `catch()`
- Like `Promise.catch()`, it takes a callback which gets fired after the source
observable errors. It will then map to a new observable, returned by the callback,
unless the error is rethrown.
- `takeUntil(Observable)`
- Returns an observable that mirrors the one that this method is called on,
until the input observable emits its first value
Expand Down

0 comments on commit d843a6f

Please sign in to comment.