MCPcopy Index your code
hub / github.com/RustPython/RustPython / wait

Method wait

Lib/_pyrepl/unix_console.py:419–427  ·  view source on GitHub ↗

Wait for events on the console.

(self, timeout: float | None = None)

Source from the content-addressed store, hash-verified

417 return self.event_queue.get()
418
419 def wait(self, timeout: float | None = None) -> bool:
420 """
421 Wait for events on the console.
422 """
423 return (
424 not self.event_queue.empty()
425 or self.more_in_buffer()
426 or bool(self.pollob.poll(timeout))
427 )
428
429 def set_cursor_vis(self, visible):
430 """

Callers 1

get_eventMethod · 0.95

Calls 3

more_in_bufferMethod · 0.95
emptyMethod · 0.45
pollMethod · 0.45

Tested by

no test coverage detected