2 ms·
I started on py3.5 - but haven't been able to use the new syntax as I'm using aiozmq so had to use @coroutine.function. The whole experience has been mega conf
by stuaxo 10y ago
I started on py3.5 - but haven't been able to use the new syntax as I'm using aiozmq so had to use @coroutine.function.
The whole experience has been mega confusing as there are so many similar yet slightly incompatible concepts.
- 1st1 10y agoYou 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()