Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions broqer/op/combine_latest.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,13 +109,13 @@ def emit(self, value: Any, who: Publisher) -> None:
# remember state of this source
self._partial_state[index] = value

# if emits from publishers are missing or source of this emit
# is not one of emit_on -> don't evaluate and notify subscribers
# if emit_partial is False and emits from publishers are missing
# or source of this emit is not one of emit_on -> don't evaluate
# and notify subscribers

if not self._emit_partial and (self._missing or
(self._emit_on is not None and all(
who is not p for p in self._emit_on
))):
if (self._emit_on is not None and
all(who is not p for p in self._emit_on)) or \
(not self._emit_partial and self._missing):
return None

# evaluate
Expand Down
Loading