Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for asyncgen_state_try (0.15 sec)

  1. tests/test_dependency_contextmanager.py

    
    def generator_state(state: Dict[str, str] = Depends(get_state)):
        state["/sync"] = "generator started"
        yield state["/sync"]
        state["/sync"] = "generator completed"
    
    
    async def asyncgen_state_try(state: Dict[str, str] = Depends(get_state)):
        state["/async_raise"] = "asyncgen raise started"
        try:
            yield state["/async_raise"]
        except AsyncDependencyError:
            errors.append("/async_raise")
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sat Aug 17 04:13:50 UTC 2024
    - 11.6K bytes
    - Viewed (0)
Back to top