euporie.core.app.app.set_app
- euporie.core.app.app.set_app(app: Application[Any]) Generator[None, None, None]
Context manager that sets the given
Applicationactive in an AppSession.This should only be called by the Application itself. The application will automatically be active while its running. If you want the application to be active in other threads/coroutines, where that’s not the case, use contextvars.copy_context(), or use Application.context to run it in the appropriate context.