-
-
Notifications
You must be signed in to change notification settings - Fork 139
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(flatten): when same inner stream, restart
Fix flatten operator so that if the new inner stream is the same as the previous inner stream, it synchronously stops the inner stream before subscribing to it, which will cause a synchronous (re)start. This is important to maintain referential transparency when the inner may be defined either from the closure or internally in the map project function. Both cases should be the same. Closes issue #90.
- Loading branch information
Showing
2 changed files
with
85 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters