English
Open in Telegram

Message from fastapi import BackgroundTasks

18 October 2026
N
from fastapi import BackgroundTasks @app.get("/api/health") async def health(request: Request, background: BackgroundTasks, visit: bool = False): ... Today i read newly about this BackgroundTask it looks like it is just a replacement of asyncio.to_thread, as this looks like the backgorund task will be done after the response has send with the return it will run side by side of my main funciton. am i right now?

An open public feed from the search index ChatCrawler — “Google for public Telegram”; refreshed as the venue is crawled. Times are UTC.

Public content only, official Telegram API. About · FAQ · Index limits · Remove a page · Catalog · Search · How we count