Closed robertdanci closed 8 years ago
So my guess is that I introduced the completed flag originally for covering the edge cases like actual completion, error or timeout, though I know that DeferredResult has the check to prevent from setting more the one value, though it uses explicit lock to do that.
At the moment I'm not sure if I want to remove the flag or not, both version seems to be correct at this point.
Some reasons to remove it:
Returns an Observable that emits a single item, a list composed of all the items emitted by the source
There one possible edge case to add in general: the illy implemented Subscriber, that calls the onCompleted method before executing onNext, though this probably might not happen in current scenario.
Hi,
Is there any reason for the complete flag?
It seemed to me superfluous so I deleted it. The tests pass fine.
Let me know what you think.
Regards, Robert