-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Discourse] Is it possible to map coroutines in a dask bag? #150
Comments
I think the answer here is no. But it could! I think that A good response to this could
|
@pavithraes code snippet we worked on: from dask.distributed import Client
client = await Client(asynchronous=True)
def sqr(n):
return n**2
futures = client.map(sqr, range(10))
result = await client.gather(futures) |
@ian-r-rose Is this the PR: dask/distributed#5151? |
Yes, that's the one! It's actually a bit more general than I had remembered. Were you able to check the current state of what works with async user-submitted functions and what does not? |
We did a quick search through dask/dask and the docs, and see anything outside of client submit/map :/ |
Sounds good, I think it's worth following up with the question asker |
Thanks, Ian! Followed up! |
They opened an issue on dask/dask, closing this as resolved. |
I was wondering if it is possible to map async functions onto a dask bag, something like:
The above script will raise the f…
Would you like to know more?
Read the full article on the following website:
https://dask.discourse.group/t/is-it-possible-to-map-coroutines-in-a-dask-bag/174
The text was updated successfully, but these errors were encountered: