You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, the DownloadView operates as a sync view. It's very possible (and much more efficient) to do everything async.
File reading will have to be done via aiofile in order to not break the ASGI event queue though. After this change, Django versions will need to be limited to 3.1+
The text was updated successfully, but these errors were encountered:
I believe Django supports async iterators within StreamingHttpResponse now. Async support within django-downloadview should be pretty simple to implement especially since I created a Django-compatible async file iterator in that whitenoise PR.
Currently, the DownloadView operates as a sync view. It's very possible (and much more efficient) to do everything async.
File reading will have to be done via
aiofile
in order to not break the ASGI event queue though. After this change, Django versions will need to be limited to 3.1+The text was updated successfully, but these errors were encountered: