run_in_background¶
- AsyncYouTubeNotifier.run_in_background(*, host: str = '0.0.0.0', port: int = 8000, app: FastAPI | None = None, log_level: int = 30, **configs: object) AsyncIterator[Task]¶
Run the FastAPI server in an existing event loop and return immediately.
- Parameters:
host – The host IP address to bind the server.
port – The port number to bind the server.
app – The FastAPI application to use for serving the server.
log_level – The log level to use for the server.
configs – Additional configurations to pass to the server.