> On Oct 30, 2016, at 3:02 PM, Yury Selivanov <yseliva...@gmail.com> wrote:
> 
> I’ve just looked through events.py.  I think we may only need to add 
> “asyncio.run_in_executor(func)”, and maybe “asyncio.create_task(coroutine)” 
> functions.  With that it should be possible to have almost the same 
> “loopless” experience in asyncio as with curio:
> 
> async def program():
>    await asyncio.run_in_executor(func)
>    await asyncio.open_connection(…)
>    task = asyncio.create_task(…)
> asyncio.main(program())

Never mind 'asyncio.create_task', we already have ensure_future.

Yury

Reply via email to