Home / Function/ get_sync_context_b_bg() — fastapi Function Reference

get_sync_context_b_bg() — fastapi Function Reference

Architecture documentation for the get_sync_context_b_bg() function in test_dependency_contextmanager.py from the fastapi codebase.

Entity Profile

Dependency Diagram

graph TD
  76434e65_d81d_4e69_527c_0ff3a87f784c["get_sync_context_b_bg()"]
  952bbb41_0c47_a7fe_aee8_884380d032f7["test_dependency_contextmanager.py"]
  76434e65_d81d_4e69_527c_0ff3a87f784c -->|defined in| 952bbb41_0c47_a7fe_aee8_884380d032f7
  style 76434e65_d81d_4e69_527c_0ff3a87f784c fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

tests/test_dependency_contextmanager.py lines 194–203

async def get_sync_context_b_bg(
    tasks: BackgroundTasks, state: dict = Depends(context_b)
):
    async def bg(state: dict):
        state["sync_bg"] = (
            f"sync_bg set - b: {state['context_b']} - a: {state['context_a']}"
        )

    tasks.add_task(bg, state)
    return state

Domain

Subdomains

Frequently Asked Questions

What does get_sync_context_b_bg() do?
get_sync_context_b_bg() is a function in the fastapi codebase, defined in tests/test_dependency_contextmanager.py.
Where is get_sync_context_b_bg() defined?
get_sync_context_b_bg() is defined in tests/test_dependency_contextmanager.py at line 194.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free