Quantcast
Channel: How can I call an async function without await? - Stack Overflow
Viewing all articles
Browse latest Browse all 7

Answer by Pasalino for How can I call an async function without await?

$
0
0

Other way would be to use ensure_future function:

import asyncioasync def handler_message(request):...loop = asyncio.get_event_loop()loop.ensure_future(perform_message(x,y,z))...

Viewing all articles
Browse latest Browse all 7

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>