until_done() — anthropic-sdk-python Function Reference
Architecture documentation for the until_done() function in _messages.py from the anthropic-sdk-python codebase.
Entity Profile
Dependency Diagram
graph TD a83262c8_25cd_2a5b_a4bd_500bdcf5b6c5["until_done()"] e621e870_ca7f_408e_c8bb_3d408ede66a4["MessageStream"] a83262c8_25cd_2a5b_a4bd_500bdcf5b6c5 -->|defined in| e621e870_ca7f_408e_c8bb_3d408ede66a4 f7d7eda3_f48d_9a94_ee86_5e96ba366fee["get_final_message()"] f7d7eda3_f48d_9a94_ee86_5e96ba366fee -->|calls| a83262c8_25cd_2a5b_a4bd_500bdcf5b6c5 adb888ca_b9bd_2363_ade2_ad24ef72c39d["until_done()"] adb888ca_b9bd_2363_ade2_ad24ef72c39d -->|calls| a83262c8_25cd_2a5b_a4bd_500bdcf5b6c5 adb888ca_b9bd_2363_ade2_ad24ef72c39d["until_done()"] a83262c8_25cd_2a5b_a4bd_500bdcf5b6c5 -->|calls| adb888ca_b9bd_2363_ade2_ad24ef72c39d style a83262c8_25cd_2a5b_a4bd_500bdcf5b6c5 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
src/anthropic/lib/streaming/_messages.py lines 118–120
def until_done(self) -> None:
"""Blocks until the stream has been consumed"""
consume_sync_iterator(self)
Domain
Subdomains
Defined In
Calls
Called By
Source
Frequently Asked Questions
What does until_done() do?
until_done() is a function in the anthropic-sdk-python codebase, defined in src/anthropic/lib/streaming/_messages.py.
Where is until_done() defined?
until_done() is defined in src/anthropic/lib/streaming/_messages.py at line 118.
What does until_done() call?
until_done() calls 1 function(s): until_done.
What calls until_done()?
until_done() is called by 2 function(s): get_final_message, until_done.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free