jw-pkg/src/python/jw/pkg
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Jan Lindemann 679e66898e
lib.App: Implement __aenter__() and __aexit__()
__aenter__() and __aexit__() are empty stubs. Using the application
as an async context manager therefore binds None in the as clause,
and releases nothing on exit: an AsyncRunner created through
call_async() keeps running in its thread, and since that thread is
not a daemon, the process does not exit after the block.

Return self from __aenter__(), and call close() from __aexit__(), so
that the context manager binds the application and releases all
resources on exit, whether the block exits normally or with an
exception.

Assisted-by: unsloth/Qwen3.8-27B-GGUF:Q4_K_M with pi.dev v0.84.2
Signed-off-by: Jan Lindemann <jan@janware.com>
2026-08-15 15:58:46 +02:00
..
cmds py-check.mk: Run isort with "make format" 2026-08-11 16:45:14 +02:00
lib lib.App: Implement __aenter__() and __aexit__() 2026-08-15 15:58:46 +02:00
__init__.py jw.pkg.__init__.py: Add file to Git 2026-06-01 14:32:44 +02:00
App.py py-check.mk: Run isort with "make format" 2026-08-11 16:45:14 +02:00
CmdBase.py py-check.mk: Run isort with "make format" 2026-08-11 16:45:14 +02:00
Makefile jw.pkg.__init__.py: Add file to Git 2026-06-01 14:32:44 +02:00
py.typed jw/pkg/py.typed: Add file 2026-05-31 18:21:20 +02:00