MCPcopy Index your code
hub / github.com/python/cpython / wait

Method wait

Lib/_pyrepl/unix_console.py:440–447  ·  view source on GitHub ↗

Wait for events on the console.

(self, timeout: float | None = None)

Source from the content-addressed store, hash-verified

438 return self.event_queue.get()
439
440 def wait(self, timeout: float | None = None) -> bool:
441 """
442 Wait for events on the console.
443 """
444 return (
445 not self.event_queue.empty()
446 or bool(self.pollob.poll(timeout))
447 )
448
449 def set_cursor_vis(self, visible):
450 """

Callers 1

get_eventMethod · 0.95

Calls 2

emptyMethod · 0.45
pollMethod · 0.45

Tested by

no test coverage detected