Skip to content

LoopRunner: don't create a loop if one is given - #5311

Closed
gjoseph92 wants to merge 1 commit into
dask:mainfrom
gjoseph92:loop-runner/defer-current
Closed

gjoseph92 wants to merge 1 commit into
dask:mainfrom
gjoseph92:loop-runner/defer-current

Conversation

@gjoseph92

Copy link
Copy Markdown
Collaborator

Also necessary for get_client to work with uvloop

cc @jcrist

  • Tests added / passed
  • Passes black distributed / flake8 distributed / isort distributed

Also necessary for `get_client` to work with uvloop
gjoseph92 added a commit to gjoseph92/distributed that referenced this pull request Sep 10, 2021
Just curious to see what fails so far.

With dask#5310 and dask#5311, closes dask#5309 (and ensures `uvloop` will work with everything)
@gjoseph92 gjoseph92 mentioned this pull request Sep 10, 2021
3 tasks
@graingert

Copy link
Copy Markdown
Member

looks like this has been done

def __init__(self, loop=None, asynchronous=False):
if loop is None:
if asynchronous:
self._loop = IOLoop.current()
else:
# We're expecting the loop to run in another thread,
# avoid re-using this thread's assigned loop
self._loop = IOLoop()
else:
self._loop = loop

@graingert graingert closed this May 16, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants