Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add short descriptions for scan, catch, and switchMap #142

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

benlesh
Copy link
Collaborator

@benlesh benlesh commented May 3, 2024

No description provided.

@benlesh benlesh requested a review from domfarolino May 3, 2024 21:17
@@ -416,16 +416,33 @@ If the subscriber has already been aborted (i.e., `subscriber.signal.aborted` is

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

- `switchMap(mapFn)`
- Maps the value to a new observable, the subscribes to it, flattening its values

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
- Maps the value to a new observable, the subscribes to it, flattening its values
- Maps the value to a new observable, then subscribes to it, flattening its values

- `catch()`
- Like `Promise.catch()`, it takes a mapping function which is fired if the observable
source emits an error. The mapping function should map into a new value which will be converted
into an observable with `from` interally and subscribed to in leiu of the errored source.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
into an observable with `from` interally and subscribed to in leiu of the errored source.
into an observable with `from` internally and subscribed to in lieu of the errored source.

@domfarolino
Copy link
Collaborator

@benlesh could you address the review?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants