Skip to content

Commit

Permalink
MultiWorker brings its own await
Browse files Browse the repository at this point in the history
  • Loading branch information
fjetter committed Jul 12, 2021
1 parent 558814d commit 1d04276
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions distributed/deploy/tests/test_spec_cluster.py
Original file line number Diff line number Diff line change
Expand Up @@ -415,6 +415,9 @@ def __str__(self):

__repr__ = __str__

def __await__(self):
return self.start().__await__()

async def start(self):
await asyncio.gather(*self.workers)

Expand Down

0 comments on commit 1d04276

Please sign in to comment.