<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">from .. import _subprocess
from .._wait_for_object import WaitForSingleObject


async def wait_child_exiting(process: "_subprocess.Process") -&gt; None:
    # _handle is not in Popen stubs, though it is present on Windows.
    await WaitForSingleObject(int(process._proc._handle))  # type: ignore[attr-defined]
</pre></body></html>