MCPcopy Index your code
hub / github.com/huggingface/datasets / _read_stream

Function _read_stream

tests/utils.py:570–576  ·  view source on GitHub ↗
(stream, callback)

Source from the content-addressed store, hash-verified

568
569
570async def _read_stream(stream, callback):
571 while True:
572 line = await stream.readline()
573 if line:
574 callback(line)
575 else:
576 break
577
578
579async def _stream_subprocess(cmd, env=None, stdin=None, timeout=None, quiet=False, echo=False) -> _RunOutput:

Callers 1

_stream_subprocessFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected