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

Method wait

Lib/_pyrepl/windows_console.py:566–573  ·  view source on GitHub ↗

Wait for events on the console.

(self, timeout: float | None)

Source from the content-addressed store, hash-verified

564 return True
565
566 def wait(self, timeout: float | None) -> bool:
567 """
568 Wait for events on the console.
569 """
570 return (
571 not self.event_queue.empty()
572 or self.wait_for_event(timeout)
573 )
574
575 def repaint(self) -> None:
576 raise NotImplementedError("No repaint support")

Callers 3

test_wait_emptyMethod · 0.95
test_wait_not_emptyMethod · 0.95
get_eventMethod · 0.95

Calls 2

wait_for_eventMethod · 0.95
emptyMethod · 0.45

Tested by 2

test_wait_emptyMethod · 0.76
test_wait_not_emptyMethod · 0.76