MCPcopy Create free account
hub / github.com/apache/arrow / HighLatencyWriter

Class HighLatencyWriter

python/benchmarks/io.py:40–55  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

38
39
40class HighLatencyWriter(object):
41
42 def __init__(self, raw, latency):
43 self.raw = raw
44 self.latency = latency
45
46 def close(self):
47 self.raw.close()
48
49 @property
50 def closed(self):
51 return self.raw.closed
52
53 def write(self, data):
54 time.sleep(self.latency)
55 self.raw.write(data)
56
57
58class BufferedIOHighLatency(object):

Callers 1

time_buffered_writesMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected