Configure event loop using ASGI mode too
This commit is contained in:
parent
7f69e43743
commit
257b239cac
@ -1398,6 +1398,7 @@ class Sanic(BaseSanic, metaclass=TouchUpMeta):
|
||||
details: https://asgi.readthedocs.io/en/latest
|
||||
"""
|
||||
self.asgi = True
|
||||
self._configure_event_loop()
|
||||
self._asgi_app = await ASGIApp.create(self, scope, receive, send)
|
||||
asgi_app = self._asgi_app
|
||||
await asgi_app()
|
||||
|
Loading…
x
Reference in New Issue
Block a user