Created
April 18, 2020 21:45
-
-
Save susmithagudapati/a6ec93bfdd06afe28eb8b9eacb78a636 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from asgiref.sync import async_to_sync | |
sync_function = async_to_sync(async_function) | |
@async_to_sync | |
async def async_function(...): | |
... |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment