MCPcopy Index your code
hub / github.com/Bitmessage/PyBitmessage / wait

Method wait

src/throttle.py:34–44  ·  view source on GitHub ↗
(self, dataLen)

Source from the content-addressed store, hash-verified

32 self.txLen = 0
33
34 def wait(self, dataLen):
35 with self.lock:
36 self.txLen += dataLen
37 self.total += dataLen
38 while state.shutdown == 0:
39 self.recalculate()
40 if self.limit == 0:
41 break
42 if self.txLen < self.limit:
43 break
44 self.timer.wait(0.2)
45
46 def getSpeed(self):
47 self.recalculate()

Callers 15

runMethod · 0.80
sendBytesMethod · 0.80
runMethod · 0.80
runMethod · 0.80
_getPeerMethod · 0.80
runMethod · 0.80
runMethod · 0.80
select_pollerFunction · 0.80
poll_pollerFunction · 0.80
epoll_pollerFunction · 0.80
kqueue_pollerFunction · 0.80
runMethod · 0.80

Calls 1

recalculateMethod · 0.95

Tested by

no test coverage detected