MCPcopy
hub / github.com/Textualize/textual / stop

Method stop

src/textual/timer.py:93–100  ·  view source on GitHub ↗

Stop the timer.

(self)

Source from the content-addressed store, hash-verified

91 self._task = create_task(self._run_timer(), name=self.name)
92
93 def stop(self) -> None:
94 """Stop the timer."""
95 if self._task is None:
96 return
97
98 self._active.set()
99 self._task.cancel()
100 self._task = None
101
102 @classmethod
103 async def _stop_all(cls, timers: Iterable[Timer]) -> None:

Callers 15

auto_refreshMethod · 0.45
_on_mouse_downMethod · 0.45
_on_mouse_upMethod · 0.45
_on_mouse_releaseMethod · 0.45
_on_mouse_moveMethod · 0.45
_on_clickMethod · 0.45
_stop_busy_countdownMethod · 0.45
_inputMethod · 0.45
_select_commandMethod · 0.45
_select_or_commandMethod · 0.45
_stop_event_leakMethod · 0.45

Calls 2

cancelMethod · 0.80
setMethod · 0.45

Tested by 1

on_mountMethod · 0.36