-
Hi guys, Is it possible to get from distributed.client import Client
c = Client()
r = c.scatter(1, asynchronous=True)
r
<coroutine object Client._scatter at 0x000001C38A1DF4C0> Thanks in advance! |
Beta Was this translation helpful? Give feedback.
Answered by
jsignell
Feb 2, 2021
Replies: 1 comment 3 replies
-
You can await it just like a regular coroutine: future = await c.scatter(1, asynchronous=True) You might be interested in reading more about async: https://docs.python.org/3/library/asyncio-task.html |
Beta Was this translation helpful? Give feedback.
3 replies
Answer selected by
YarShev
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You can await it just like a regular coroutine:
You might be interested in reading more about async: https://docs.python.org/3/library/asyncio-task.html