jw-pkg/src/python/jw
Jan Lindemann 67e51cf07c lib.AsyncRunner: Add class
Add class AsyncRunner. This is a wrapper around the ceremony needed
to spawn an extra event loop in a synchronous function which wants to
call an async function.

Guido van Rossum considers it bad design that such a function exists
in the first place. While that may be true in the long run also for
jw-pkg, at this point I'm unwilling to flag every lazyly initialized
App property as async. It's not clear, yet, which will be async and
which not, and I dread the churn. So I will accept this as a
minimally invasive helper for now. When the API has stabilized, a
design without it may be better.

Signed-off-by: Jan Lindemann <jan@janware.com>
2026-03-20 10:30:25 +01:00
..
pkg lib.AsyncRunner: Add class 2026-03-20 10:30:25 +01:00
__init__.py jw.__init__.py: Add empty file 2025-11-16 19:43:49 +01:00
Makefile jw.__init__.py: Add empty file 2025-11-16 19:43:49 +01:00