MCPcopy Create free account
hub / github.com/EasyIME/PIME / write_function

Method write_function

python/python3/tornado/curl_httpclient.py:367–370  ·  view source on GitHub ↗
(b: Union[bytes, bytearray])

Source from the content-addressed store, hash-verified

365 if request.streaming_callback:
366
367 def write_function(b: Union[bytes, bytearray]) -> int:
368 assert request.streaming_callback is not None
369 self.io_loop.add_callback(request.streaming_callback, b)
370 return len(b)
371
372 else:
373 write_function = buffer.write # type: ignore

Callers

nothing calls this directly

Calls 1

add_callbackMethod · 0.45

Tested by

no test coverage detected