Re: Equivalent to asyncio.gather()
Posted: Sat Jan 20, 2018 11:10 am
That's really helpful, @pythoncoder.
It helps me understand how new functionality can be layered on your library too, for example providing __iter__ implementation to imply an 'awaitable' signature, use of coro functions (factories) and partial application by passing the coro functions with their arguments into a wrapping class (presumably so that the only reference to the actual coro is 'private' and hence any await invocations are managed properly by the library). Lots to learn from that, thanks.
It helps me understand how new functionality can be layered on your library too, for example providing __iter__ implementation to imply an 'awaitable' signature, use of coro functions (factories) and partial application by passing the coro functions with their arguments into a wrapping class (presumably so that the only reference to the actual coro is 'private' and hence any await invocations are managed properly by the library). Lots to learn from that, thanks.