MCPcopy Index your code
hub / github.com/kubernetes-client/python / run_forever

Method run_forever

kubernetes/base/stream/ws_client.py:262–271  ·  view source on GitHub ↗

Wait till connection is closed or timeout reached. Buffer any input received during this time.

(self, timeout=None)

Source from the content-addressed store, hash-verified

260 self._channels[channel] += data
261
262 def run_forever(self, timeout=None):
263 """Wait till connection is closed or timeout reached. Buffer any input
264 received during this time."""
265 if timeout:
266 start = time.time()
267 while self.is_open() and time.time() - start < timeout:
268 self.update(timeout=(timeout - time.time() + start))
269 else:
270 while self.is_open():
271 self.update(timeout=None)
272 @property
273 def returncode(self):
274 """

Callers 3

websocket_callFunction · 0.95
test_exit_codeMethod · 0.80

Calls 3

is_openMethod · 0.95
updateMethod · 0.95
timeMethod · 0.45

Tested by 2

test_exit_codeMethod · 0.64