Closed mayli closed 7 months ago
At the moment (RSGI 1.4) there's just support for an initialization method.
Your app can have an __rsgi_init__
method which should accept loop
as the only argument.
You can take a look at emmett
(https://github.com/emmett-framework/emmett/blob/v2.5.9/emmett/app.py#L439-L440) for an example.
There are currently no plans to support a shutdown event, unless specific use-cases emerge for that.
It seems the RSGI interface doesn't have lifespan support like asgi?