how to convert async function to sync function in python

47

how to convert async function to sync function in python -

from asgiref.sync import async_to_sync

async def func(args):
	pass
   
async_to_sync(func)(args)

Comments

Submit
0 Comments