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

Feature/share notifier observable input #6430

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

backbone87
Copy link
Contributor

Description:

Accept ObservableInput as return values from notifier factories and document ShareConfig default values.

@@ -224,15 +231,15 @@ export function share<T>(options: ShareConfig<T> = {}): MonoTypeOperatorFunction
dest.complete();
},
});
from(source).subscribe(connection);
source.subscribe(connection);
Copy link
Contributor Author

Choose a reason for hiding this comment

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

i dont know why a from was here, since it is an observable already, but if at all we should probably use innerFrom?

@backbone87
Copy link
Contributor Author

CI fail seems unrelated

@backbone87 backbone87 force-pushed the feature/share-notifier-observable-input branch from ee727fe to 520c4ce Compare June 1, 2021 22:41
@backbone87
Copy link
Contributor Author

anything left to move this forward?

share({
resetOnError: () => new Promise(() => {}),
resetOnComplete: () => new Promise(() => {}),
resetOnRefCountZero: () => new Promise(() => {}),
Copy link
Member

Choose a reason for hiding this comment

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

Can we use something better than unresolved forever promises here? haha. I mean, I know it's just tests, but this is a leak.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Will change

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Out of curiosity: is it indeed a leak? No references are being held to anything?

Copy link
Member

@benlesh benlesh left a comment

Choose a reason for hiding this comment

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

One change requested. Otherwise, LGTM.

@backbone87 backbone87 force-pushed the feature/share-notifier-observable-input branch from 520c4ce to 7834c31 Compare August 7, 2021 11:04
@backbone87
Copy link
Contributor Author

review changes & rebased

@backbone87
Copy link
Contributor Author

whats blocking this?

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.

2 participants