MCPcopy
hub / github.com/celery/celery / __read__

Function __read__

celery/concurrency/asynpool.py:53–58  ·  view source on GitHub ↗
(fd, buf, size, read=os.read)

Source from the content-addressed store, hash-verified

51except ImportError:
52
53 def __read__(fd, buf, size, read=os.read):
54 chunk = read(fd, size)
55 n = len(chunk)
56 if n != 0:
57 buf.write(chunk)
58 return n
59 readcanbuf = False
60
61 def unpack_from(fmt, iobuf, unpack=unpack): # noqa

Callers 1

_recv_messageMethod · 0.85

Calls 1

writeMethod · 0.45

Tested by

no test coverage detected