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

Function timed_send

tests/lib/tools/test_session_runner.py:1227–1229  ·  view source on GitHub ↗
(*args: Any, **kwargs: Any)

Source from the content-addressed store, hash-verified

1225 real_send = events.send
1226
1227 async def timed_send(*args: Any, **kwargs: Any) -> None:
1228 await real_send(*args, **kwargs)
1229 post_times.append(time.monotonic())
1230
1231 monkeypatch.setattr(events, "send", timed_send)
1232

Callers

nothing calls this directly

Calls 2

appendMethod · 0.45
monotonicMethod · 0.45

Tested by

no test coverage detected