Skip to content

Commit

Permalink
added fallback definition of _timeout_handle to OnEmitFuture
Browse files Browse the repository at this point in the history
  • Loading branch information
semiversus committed Sep 18, 2018
1 parent d9d6d9e commit 3b9efa1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions broqer/op/subscribers/on_emit_future.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,8 @@ def __init__(self, timeout=None, loop=None):
if timeout is not None:
self._timeout_handle = loop.call_later(
timeout, self.set_exception, asyncio.TimeoutError)
else:
self._timeout_handle = None

self._disposable = None

Expand Down

0 comments on commit 3b9efa1

Please sign in to comment.