Skip to content

Commit

Permalink
return possible futures on topic.emit
Browse files Browse the repository at this point in the history
  • Loading branch information
semiversus committed Jun 15, 2018
1 parent c1d0046 commit 0629a88
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion broqer/hub.py
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ def emit(self, *args: Any, who: Optional[Publisher]=None) -> None:
elif who == self._subject:
self._emit(*args)
else:
self._subject.emit(*args, who=self)
return self._subject.emit(*args, who=self)

def __call__(self, *args, **kwargs) -> None:
raise TypeError('Topic is not callable (for use with | operator).' +
Expand Down

0 comments on commit 0629a88

Please sign in to comment.