cara mengubah fungsi async ke fungsi sinkronisasi dalam python
from asgiref.sync import async_to_sync
async def func(args):
pass
async_to_sync(func)(args)
Anies
from asgiref.sync import async_to_sync
async def func(args):
pass
async_to_sync(func)(args)