MCPcopy
hub / github.com/tornadoweb/tornado / write_function

Method write_function

tornado/curl_httpclient.py:349–352  ·  view source on GitHub ↗
(b: Union[bytes, bytearray])

Source from the content-addressed store, hash-verified

347 if request.streaming_callback:
348
349 def write_function(b: Union[bytes, bytearray]) -> int:
350 assert request.streaming_callback is not None
351 self.io_loop.add_callback(request.streaming_callback, b)
352 return len(b)
353
354 else:
355 write_function = buffer.write # type: ignore

Callers

nothing calls this directly

Calls 1

add_callbackMethod · 0.45

Tested by

no test coverage detected