def METHOD_NAME() -> None:
    import threading
    launched_event = threading.Event()
    future = run_playwright_in_thread(launched_event)
    # Wait for the browser to be launched to print the monitored string ("Playwright recorder started.")
    print("Waiting...", flush=True)
    launched_event.wait()
    if future.exception() is None:
        # Note: This string is being monitored, so, if it's renamed it
        # must also be renamed in `robocorp_code.playwright._Playwright._launch_playwright_recorder`.
        print("Playwright recorder started. If not already triggered.", flush=True)
    # Now, wait for the process to finish (either with the result or exception).
    returncode = future.result()
    print(f"Playwright recorder finished. returncode: {returncode}", flush=True)