MCPcopy Index your code
hub / github.com/Textualize/textual / close

Method close

src/textual/drivers/_input_reader_linux.py:23–25  ·  view source on GitHub ↗

Close the reader (will exit the iterator).

(self)

Source from the content-addressed store, hash-verified

21 self._exit_event = Event()
22
23 def close(self) -> None:
24 """Close the reader (will exit the iterator)."""
25 self._exit_event.set()
26
27 def __iter__(self) -> Iterator[bytes]:
28 """Read input, yield bytes."""

Callers

nothing calls this directly

Calls 1

setMethod · 0.45

Tested by

no test coverage detected