Opened 23 months ago

Closed 23 months ago

Last modified 23 months ago

#34300 closed New feature (duplicate)

Support async generators in StreamingHttpResponse

Reported by: Stephan Fitzpatrick Owned by: nobody
Component: HTTP handling Version: 4.1
Severity: Normal Keywords: async, http, streaming
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

This is essentially a duplicate of #31852.

It's been a couple of years since the ticket was opened and it would still be a very useful feature.

There hasn't been any specific discussion in https://forum.djangoproject.com/c/internals/async/8 in that time.

An implementation has been published to PYPI that could be used as a reference for further discussion and implementation https://pypi.org/project/django-async-stream/

Change History (2)

comment:1 by Tim Graham, 23 months ago

Resolution: duplicate
Status: newclosed

The discussion should continue on the original ticket and the ticket reopened if there's a clear path forward.

comment:2 by Simon Charette, 23 months ago

I think there might have been a big of triaging confusion and that support for async generators might have been added to the upcoming Django 4.2 release via (0bd2c0c9015b53c41394a1c0989afbfd94dc2830) #33735.

Note: See TracTickets for help on using tickets.
Back to Top