Hacker News new | past | comments | ask | show | jobs | submit login

You can call old style coroutines (generators wrapped in asyncio.coroutine) from async/await code directly.

    @coroutine
    def foo(): return 123

    async def bar():
        await foo()



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: