You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'd like to suggest functions similar to bluebird.js::props(), and pydash::map_values() for working with dictionaries rather than lists.
This allows computing a series of async functions whilst retaining the original mapping between input and output values, and is also a convenient way to load multiple named async variables before the main synchronous code block.
Oh, yeah, that's relatively common if you came from a JS background, but not sure if Python devs are going to appreciate this. At the end I feel it's pretty much logic sugar for convenience and laziness.
If any, I would only bet supporting interface and behavior of example 1 and 2, but no more. I prefer a concrete, predictable interface instead of a too overloaded interface with too many vectors.
This can be easily implemented in multiple ways, such as using the async reducer.
PR are welcome.
Ideally, porting the following functions to the asynchronous world:
itertools.chain
itertools.chain.from_iterable
functools.partial_method
itertools.takewhile
itertools.compress
itertools.startmap
take
itertools.tee
The text was updated successfully, but these errors were encountered: