-
Notifications
You must be signed in to change notification settings - Fork 3k
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
Stream across node projects prevent process from exiting #5469
Comments
Yes. The You should be able to confirm that the problem is what you think it is by using |
It seems that there is more to this than just using There is also an interop subscriber problem that's due to Actually, it's more subtle. The PR referenced above deals with effecting unsubscriptions in safe subscribers that are effected by notifications. In this issue, the unsubscription is effected by an explicit unsubscription - via the |
Bug Report
Current Behavior
Creating a stream in one project, and using it in another can prevent the process from exiting.
Reproduction
Note that this use a forked rxjs version. I just packaged HEAD and included dist in the repo, to easily add the dependency in package.json.
Project a:
Project b:
Expected behavior
Process exit after some console output.
Environment
Possible Solution
I’ve found two workarounds, but only one really practical for my purposes.
The first option is very unpractical. This is a simple example, where it’s clear where to wrap it. In real life, things are very different. This would make it terrible difficult to refactor shared code into a library.
The second option is what I’m using now. It’s pretty ugly, but it can be implemented with a simple find/replace.
Additional context/Screenshots
I wonder if this is not related to #5237
The text was updated successfully, but these errors were encountered: