Hello,
I am using asyncio event loop in my project and i need to make non blocking calls of lets say a coroutine called async.
@asyncio.coroutine
def async(attr1, attr2):
//my coroutine code here
loop = asyncio.get_event_loop()
result = yield from loop.run_in_executor(None, async('attr1', 'attr2'))
return result
I am getting the following error : TypeError: 'Task' object is not callable.
How can i run a coroutine in a non blocking mode with asyncio ?
Thanks.