Skip to content

Commit

Permalink
Make SchedulerAddress awaitable (#347)
Browse files Browse the repository at this point in the history
* Release 2022.4.0

* Make SchedulerAddress awaitable
  • Loading branch information
jacobtomlinson committed May 16, 2022
1 parent aee9a0b commit b604581
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions dask_cloudprovider/aws/ecs.py
Original file line number Diff line number Diff line change
Expand Up @@ -1005,6 +1005,12 @@ class SchedulerAddress(object):
def __init__(self_):
self_.address = self._scheduler_address

def __await__(self):
async def _():
return self

return _().__await__()

self.scheduler = SchedulerAddress()

with warn_on_duration(
Expand Down

0 comments on commit b604581

Please sign in to comment.