Replies: 3 comments 1 reply
-
@2-5 I'd say both As for the On a side node: if you want to run async code in |
Beta Was this translation helpful? Give feedback.
-
I'm curious how you think it might change. Maybe you want to remove
Indeed, that would make more sense for the example I posted above. In the real app I run multiple tasks for the whole duration of the process, so I need |
Beta Was this translation helpful? Give feedback.
-
@2-5 jfyi RSGI spec is now mentioning both |
Beta Was this translation helpful? Give feedback.
-
I'm using
__rsgi_init__
to be able to integrate in the event loop a separate piece ofasyncio
code needed by the app. This was previously requested by other users (how to integrate withasyncio.create_task
, ...):But
__rsgi__
and__rsgi_init__
are not mentioned in the RSGI spec, so I guess they are an undocumented feature used byemmett
, but possibly not supported by other future RSGI servers.So what is their status?
I would also like to request the addition of something like
__rsgi_close__
which is called on worker shutdown for graceful exit. You suggested in another discussion subclassingGranian
and adding the custom shutdown call afterserve
returns.Beta Was this translation helpful? Give feedback.
All reactions