MCPcopy Index your code
hub / github.com/raiden-network/raiden / wait_for

Method wait_for

raiden/utils/http.py:178–197  ·  view source on GitHub ↗
(self, wait_for)

Source from the content-addressed store, hash-verified

176 log.debug("Executor process: current processes", ps_fax=ps_fax)
177
178 def wait_for(self, wait_for):
179 while self.check_timeout():
180 log.debug(
181 "Executor process: waiting",
182 command=self.command,
183 until=self._endtime,
184 now=time.time(),
185 )
186 if wait_for():
187 log.debug(
188 "Executor process: waiting ended",
189 command=self.command,
190 until=self._endtime,
191 now=time.time(),
192 )
193 return self
194 time.sleep(self._sleep)
195
196 self.kill()
197 raise TimeoutExpired(self, timeout=self._timeout)
198
199 def running(self) -> bool:
200 """Include pre_start_check in running, so stop will wait for the underlying listener"""

Callers 1

startMethod · 0.95

Calls 2

killMethod · 0.95
timeMethod · 0.80

Tested by

no test coverage detected