Skip to content

Commit

Permalink
added missing applying map to op.CombineLatest on subscription (fixin…
Browse files Browse the repository at this point in the history
…g issue #1)
  • Loading branch information
semiversus committed Jun 13, 2018
1 parent 551d11d commit 1832bce
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion broqer/op/combine_latest.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,10 @@ def __init__(self, *publishers: Publisher, map=None) -> None:
def subscribe(self, subscriber: Subscriber) -> SubscriptionDisposable:
disposable = MultiOperator.subscribe(self, subscriber)
if not self._missing:
subscriber.emit(*self._cache, who=self)
if self._map:
self._emit(self._map(*self._cache))
else:
self._emit(*self._cache)
return disposable

def emit(self, *args: Any, who: Publisher) -> None:
Expand Down

0 comments on commit 1832bce

Please sign in to comment.