Skip to content

fix async subscriber #377

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

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

fix async subscriber #377

wants to merge 1 commit into from

Conversation

phryneas
Copy link
Member

@phryneas phryneas commented Apr 4, 2025

While this seems to work with zen-observable, with rxjs returning a Promise from the subscriber will cause
image

@phryneas phryneas requested a review from a team as a code owner April 4, 2025 13:10
Copy link
Member

@jerelmiller jerelmiller left a comment

Choose a reason for hiding this comment

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

One question, but otherwise the rest of it looks good

observer.error(err);
}
return new Observable((observer) => {
Promise.then(async () => {
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
Promise.then(async () => {
Promise.resolve().then(async () => {

I don't see Promise.then available on the Promise class itself. Perhaps you meant Promise.resolve().then?

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