From 98a4f07d28fe3b6a3a547006a5c1dfcd12fac272 Mon Sep 17 00:00:00 2001 From: Ben Lesh Date: Tue, 11 Jun 2024 20:42:43 -0400 Subject: [PATCH] Adds the catch operator to the README (#87) Co-authored-by: Dominic Farolino --- README.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/README.md b/README.md index 5f8b043..6162936 100644 --- a/README.md +++ b/README.md @@ -413,6 +413,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