-
Notifications
You must be signed in to change notification settings - Fork 431
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
New API to work with single value streams #667
Comments
See a POC implementation at #668
|
@jjoelson wrote:
I would agree with Having that said, personally I'm not married to any naming. My only strict criteria is that I believe if we choose to change something we need to be consistent and not create a mixture of patterns. |
Hello. 👋 Thanks for opening this issue. Due to inactivity, we will soft close the issue. If you feel that it should remain open, please let us know. 😄 |
This issue is created in an attempt to help proceed with the discussion happening in the Stream of one event #661 proposal.
The issue is around providing a better API for cases like
Today RAS gives us two options to put instead of S:
Signal
andSignalProducer
. Both options aren't ideal:Signal
isn't fine for the reason that there are no guarantees that we will not miss the result.SignalProducer
is the only real option but it doesn't fit the semantics of the protocol - in order for SignalProducer to fit the protocol should be changed toLast but not the least - both Signal and SignalProducer fail totally at advertising that the observer will never receive multiple events - there will always be just one value, or an error (actually, there might be also an interruption, depending on whether we decide to allow it here)
During the discussion in #661 there was a lot said about the wanted cold / warm nature of the suggested new API but I believe that the best way of summarising the effort there would be to copy here a set of requirements in front of the potential API
The text was updated successfully, but these errors were encountered: