-
-
Notifications
You must be signed in to change notification settings - Fork 3
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
Which functions should we expose, and what should they be called? #3
Comments
Hmm.
(fun fact: for maximum inscrutability points, that So I think the three we have now are a good three to be working with. Friendly amendment: maybe Naming:
|
I'll put in a plug for an async IIUC what |
In my initial draft, I have 3 functions:
run_on_each
: concurrent map, with results optionally directed to aSendChannel
, no return valueamap
: concurrent map,async with
calling convention, with results provided as an async iterablerun_all
: concurrent call-all-these-callables, with results provided at the end as a listI'm not at all sure that these three are the right set to provide, or that we have the names right.
I guess there's a two-dimensional space of calling conventions:
nursery.start
-returning-async-iterable vs. big-list-at-endSo in principle there are 2*5 = 10 functions we could provide here... but that's way too many and too confusing, so we need to cut it down somehow.
The text was updated successfully, but these errors were encountered: