Comment on Show HN: Chard – simple async/await background tasks for DjangoComments−etaioinshrdlu4yIt looks like it requires all the code in your task to use async code?−drpancakeOP4yThat's right although you could take a synchronous function and wrap it with sync_to_async() and it would work. But I'm not sure about the performance implications of that.https://docs.djangoproject.com/en/4.1/topics/async/#asgiref....
Comments
It looks like it requires all the code in your task to use async code?
That's right although you could take a synchronous function and wrap it with sync_to_async() and it would work. But I'm not sure about the performance implications of that.
https://docs.djangoproject.com/en/4.1/topics/async/#asgiref....