MCPcopy Create free account
hub / github.com/anthropics/anthropic-sdk-python / wait_closed

Method wait_closed

tests/utils.py:215–219  ·  view source on GitHub ↗

An event loop closes what was dropped once it gets to run, and one generator after the other.

(self)

Source from the content-addressed store, hash-verified

213 return httpx2.MockTransport(lambda _: httpx2.Response(200, stream=self))
214
215 async def wait_closed(self) -> None:
216 """An event loop closes what was dropped once it gets to run, and one generator after the other."""
217 with anyio.fail_after(10):
218 while not self.closes:
219 await anyio.sleep(0)
220
221
222Request = Callable[..., Stream[object]]

Calls 1

sleepMethod · 0.80