Asyncio -- delayed calculation

Steve D'Aprano steve+python at pearwood.info
Mon Nov 28 19:20:56 EST 2016


On Tue, 29 Nov 2016 02:53 am, Ian Kelly wrote:

> In order for the coroutines to actually do anything, you need to
> schedule them in some way with the event loop. That could take the
> form of awaiting them from some other coroutine, or passing them
> directly to loop.run_until_complete or event_loop.create_task, or as
> Chris suggested awaiting them as an aggregate.

I thought that's what I had done, by calling

loop.run_until_complete(main())



-- 
Steve
“Cheer up,” they said, “things could be worse.” So I cheered up, and sure
enough, things got worse.




More information about the Python-list mailing list