Skip to content

Commit

Permalink
Merge pull request #426 from martindurant/import
Browse files Browse the repository at this point in the history
fix dask import
  • Loading branch information
martindurant committed Jun 23, 2021
2 parents 529bb7e + ee620d4 commit 14ee10f
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions streamz/core.py
Expand Up @@ -14,10 +14,6 @@
from tornado.locks import Condition
from tornado.ioloop import IOLoop
from tornado.queues import Queue
try:
from tornado.ioloop import PollIOLoop
except ImportError:
PollIOLoop = None # dropped in tornado 6.0

try:
from distributed.client import default_client as _dask_default_client
Expand Down Expand Up @@ -1995,11 +1991,6 @@ def sync(loop, func, *args, **kwargs):
"""
# This was taken from distrbuted/utils.py

# Tornado's PollIOLoop doesn't raise when using closed, do it ourselves
if PollIOLoop and ((isinstance(loop, PollIOLoop) and getattr(loop, '_closing', False))
or (hasattr(loop, 'asyncio_loop') and loop.asyncio_loop._closed)):
raise RuntimeError("IOLoop is closed")

timeout = kwargs.pop('callback_timeout', None)

e = threading.Event()
Expand Down

0 comments on commit 14ee10f

Please sign in to comment.