Home / Class/ AwhileMaker Class — langchain Architecture

AwhileMaker Class — langchain Architecture

Architecture documentation for the AwhileMaker class in test_runnable_events_v2.py from the langchain codebase.

Entity Profile

Dependency Diagram

graph TD
  6897515f_c7bd_a14e_9880_54f3ac0d110c["AwhileMaker"]
  33c02978_2077_5819_7048_bc2a81e80625["test_runnable_events_v2.py"]
  6897515f_c7bd_a14e_9880_54f3ac0d110c -->|defined in| 33c02978_2077_5819_7048_bc2a81e80625
  146d780c_9af8_5d42_bc0e_694bc8024c76["__init__()"]
  6897515f_c7bd_a14e_9880_54f3ac0d110c -->|method| 146d780c_9af8_5d42_bc0e_694bc8024c76
  fddde8fb_5b3b_4572_2838_2ea6217aa07e["__call__()"]
  6897515f_c7bd_a14e_9880_54f3ac0d110c -->|method| fddde8fb_5b3b_4572_2838_2ea6217aa07e
  ff9dc64e_d522_d439_5302_1fca52a68214["reset()"]
  6897515f_c7bd_a14e_9880_54f3ac0d110c -->|method| ff9dc64e_d522_d439_5302_1fca52a68214

Relationship Graph

Source Code

libs/core/tests/unit_tests/runnables/test_runnable_events_v2.py lines 2463–2478

    class AwhileMaker:
        def __init__(self) -> None:
            self.reset()

        async def __call__(self, value: Any) -> Any:
            self.started = True
            try:
                await asyncio.sleep(0.5)
            except asyncio.CancelledError:
                self.cancelled = True
                raise
            return value

        def reset(self) -> None:
            self.started = False
            self.cancelled = False

Frequently Asked Questions

What is the AwhileMaker class?
AwhileMaker is a class in the langchain codebase, defined in libs/core/tests/unit_tests/runnables/test_runnable_events_v2.py.
Where is AwhileMaker defined?
AwhileMaker is defined in libs/core/tests/unit_tests/runnables/test_runnable_events_v2.py at line 2463.

Analyze Your Own Codebase

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

Try Supermodel Free