[Python-ideas] Are there asynchronous generators?
p.f.moore at gmail.com
Thu Jul 2 21:01:17 CEST 2015
On 2 July 2015 at 17:21, Ron Adam <ron3200 at gmail.com> wrote:
> On 07/02/2015 05:57 AM, Paul Moore wrote:
>> So even though people can
>> understand event-driven problems, they can't, without experience, see
>> how async/await*addresses* that problem.
> Yes, I think there are some parts to it that are difficult to understand
> still. That could be a documentation thing.
> Consider a routine roughly organised like this:
> action1 <-- wait for event1
> action2 <-- wait for event2
> sleep # continue event_loop
> It's not clear to me how to write that with asyncio yet. But I don't think
> I'm alone.
Precisely. Thanks for explaining it better than I did.
More information about the Python-ideas