I have a controller action in aiohttp application.
async def handler_message(request):
try:
content = await request.json()
perform_messa
Other way would be to use ensure_future
function:
import asyncio
async def handler_message(request):
...
loop = asyncio.get_event_loop()
loop.ensure_future(perform_message(x,y,z))
...
One way would be to use create_task function:
import asyncio
async def handler_message(request):
...
loop = asyncio.get_event_loop()
loop.create_task(perform_message(x,y,z))
...