Matt Wong-Kemp07/21/2020, 7:24 PM
but I'm getting an error:
async def do_thing_async_impl(a,b,c): await ... ... @task def do_thing(a,b,c): return asyncio.run_until.complete(do_thing_async(a,b,c))
Before I got digging into event loop fun, is there an easier way to do an async task?
Future <Future pending cb=[BaseSelectorEventLoop._sock_connect_done(9)()]> attached to a different loop')
Jim Crist-Harif07/21/2020, 7:28 PM
? I'd expect this to work. The issue you're seeing above relates to mixing event loops - some code is creating futures/sockets/stuff in one event loop and trying to use them in another event loop.
Matt Wong-Kemp07/21/2020, 7:29 PM