Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 1 of 1 for read_async_items (0.07 seconds)

  1. fastapi/.agents/skills/fastapi/SKILL.md

    ```python
    from fastapi import FastAPI
    
    app = FastAPI()
    
    
    # Use async def when calling async code
    @app.get("/async-items/")
    async def read_async_items():
        data = await some_async_library.fetch_items()
        return data
    
    
    # Use plain def when calling blocking/sync code or when in doubt
    @app.get("/items/")
    def read_items():
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Sun Mar 01 10:05:57 GMT 2026
    - 10.1K bytes
    - Click Count (0)
Back to Top