3 ms·
It looks like it requires all the code in your task to use async code?
by etaioinshrdlu 4y ago
It looks like it requires all the code in your task to use async code?
- drpancake 4y agoThat'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.sync.sync_to_async https://docs.djangoproject.com/en/4.1/topics/async/#asgiref....