allow early stop calls to CLI spinner

This commit is contained in:
Florian Förster 2025-11-11 10:07:02 +01:00
parent d14448293b
commit 62e79c03b6
2 changed files with 5 additions and 2 deletions

View File

@ -1,6 +1,6 @@
[project]
name = "dopt-basics"
version = "0.2.3"
version = "0.2.4"
description = "basic cross-project tools for Python-based d-opt projects"
authors = [
{name = "Florian Förster", email = "f.foerster@d-opt.com"},
@ -69,7 +69,7 @@ directory = "reports/coverage"
[tool.bumpversion]
current_version = "0.2.3"
current_version = "0.2.4"
parse = """(?x)
(?P<major>0|[1-9]\\d*)\\.
(?P<minor>0|[1-9]\\d*)\\.

View File

@ -81,6 +81,9 @@ class LoadingAnimation:
self,
interrupt: bool = False,
) -> None:
if self.done:
return
self.done = True
if self._do_animation:
self._thread.join()