Skip to content

Clarify async documentation #2085

Description

@dhirschfeld

I'm just testing out the distributed async support and seem to have hit a bug:

from tornado.ioloop import IOLoop
from dask.distributed import Client


client = Client()

async def f():
    print('A')
    future = client.submit(lambda x: x + 1, 10)
    print('B')
    result = await client.gather(future, asynchronous=True)
    print('C')
    return result

res = IOLoop().run_sync(f)
print(res)
client.close()

results in:

A
B
<HANG FOREVER>

I'm on win64 running:

python      3.6.5
distributed 1.22.0+9.gdb758d0f
dask        0.18.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions