MCPcopy Create free account
hub / github.com/anomalyco/opencode-sdk-python / close

Method close

src/opencode_ai/_streaming.py:75–81  ·  view source on GitHub ↗

Close the response and release the connection. Automatically called if the response body is read to completion.

(self)

Source from the content-addressed store, hash-verified

73 self.close()
74
75 def close(self) -> None:
76 """
77 Close the response and release the connection.
78
79 Automatically called if the response body is read to completion.
80 """
81 self.response.close()
82
83
84class AsyncStream(Generic[_T]):

Callers 7

__exit__Method · 0.95
test_method_listMethod · 0.45

Calls

no outgoing calls

Tested by 6

test_method_listMethod · 0.36