def METHOD_NAME() -> None:
    pending_executions: List[Thread] = []
    while not closed.is_set():
        try:
            method_name, args, kwargs = method_queue.get(block=False)
            if method_name == 'signal_server_shutdown':
                if pending_executions:
                    globals.log.warning('shutdown is possibly blocked by opened dialogs like a file picker')
                    while pending_executions:
                        pending_executions.pop().join()
            elif method_name == 'get_always_on_top':
                response_queue.put(window.on_top)
            elif method_name == 'set_always_on_top':
                window.on_top = args[0]
            elif method_name == 'get_position':
                response_queue.put((int(window.x), int(window.y)))
            elif method_name == 'get_size':
                response_queue.put((int(window.width), int(window.height)))
            else:
                method = getattr(window, method_name)
                if callable(method):
                    pending_executions.append(Thread(target=execute, args=(method, args, kwargs)))
                    pending_executions[-1].start()
                else:
                    globals.log.error(f'window.{method_name} is not callable')
        except queue.Empty:
            time.sleep(0.01)
        except Exception:
            globals.log.exception(f'error in window.{method_name}')