INNER CODE UNIT · Python
remaining
mars-tw/anti-gambling-trader-tw · core/ui/server.py:298
remaining = until - time.monotonic()
if remaining <= 0:
break
worker.join(remaining)
with self._owned_lock:
return not any(
worker.is_alive()
for worker in self._owned_handler_threads.values()
if worker is not current
)
def handle_error(self, request: Any, client_address: Any) -> None:
# Never print request data, tokens, temp paths, or tracebacks.
return
class _Handler(BaseHTTPRequestHandler):
protocol_version = "HTTP/1.1"