clan-app: Make http server non blocking, add tests for the http server and for cancelling tasks

This commit is contained in:
Qubasa
2025-07-10 17:21:18 +07:00
parent 70eb67ffd2
commit 695141b2ae
6 changed files with 38 additions and 41 deletions

View File

@@ -126,6 +126,7 @@ class ApiBridge(ABC):
target=thread_task, args=(stop_event,), name=thread_name
)
thread.start()
self.threads[op_key] = WebThread(thread=thread, stop_event=stop_event)
if wait_for_completion: