Home / Function/ test_run_in_executor() — langchain Function Reference

test_run_in_executor() — langchain Function Reference

Architecture documentation for the test_run_in_executor() function in test_config.py from the langchain codebase.

Entity Profile

Dependency Diagram

graph TD
  53b39cbc_4f96_8a9f_78f6_0f44d80bb275["test_run_in_executor()"]
  8b969f31_85c5_bfa6_c6dd_4c29568f829f["test_config.py"]
  53b39cbc_4f96_8a9f_78f6_0f44d80bb275 -->|defined in| 8b969f31_85c5_bfa6_c6dd_4c29568f829f
  style 53b39cbc_4f96_8a9f_78f6_0f44d80bb275 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

libs/core/tests/unit_tests/runnables/test_config.py lines 155–163

async def test_run_in_executor() -> None:
    def raises_stop_iter() -> Any:
        return next(iter([]))

    with pytest.raises(StopIteration):
        raises_stop_iter()

    with pytest.raises(RuntimeError):
        await run_in_executor(None, raises_stop_iter)

Subdomains

Frequently Asked Questions

What does test_run_in_executor() do?
test_run_in_executor() is a function in the langchain codebase, defined in libs/core/tests/unit_tests/runnables/test_config.py.
Where is test_run_in_executor() defined?
test_run_in_executor() is defined in libs/core/tests/unit_tests/runnables/test_config.py at line 155.

Analyze Your Own Codebase

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

Try Supermodel Free