Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

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)
Source by www.programcreek.com #
 
PREVIOUS NEXT
Tagged: #convert #async #function #sync #function #python
ADD COMMENT
Topic
Name
5+7 =