MCPcopy Create free account
hub / github.com/ActiveState/code / recv

Method recv

recipes/Python/577001_sqlite_message_bus/recipe-577001.py:74–82  ·  view source on GitHub ↗
(self, tag='*', func=lambda _: True, wait=5, sleep=0.5)

Source from the content-addressed store, hash-verified

72
73 # PUBLIC
74 def recv (self, tag='*', func=lambda _: True, wait=5, sleep=0.5):
75 end = time.time() + wait
76 while True:
77 self._poll()
78 for t in self._filter(tag, func):
79 yield t
80 if time.time() > end:
81 break
82 time.sleep(sleep)
83
84 def send (self, dest, tag, **kwargs):
85 data = (tag, kwargs)

Callers 14

recipe-577278.pyFile · 0.45
handleMethod · 0.45
paFunction · 0.45
pbFunction · 0.45
handle_readMethod · 0.45
RecvDataMethod · 0.45
SendDataMethod · 0.45
handleMethod · 0.45
whoisMethod · 0.45
recipe-577232.pyFile · 0.45
handleFunction · 0.45
runMethod · 0.45

Calls 4

_pollMethod · 0.95
_filterMethod · 0.95
timeMethod · 0.45
sleepMethod · 0.45

Tested by

no test coverage detected