Currently wait() is blocking, while tryWait() would have to be used in a loop in order to simulate waiting until a timeout is reached. It would be great if waitTimeout(Pid, Duration) was provided as an API.
@MoonlightSentinel created dlang/phobos pull request #7528 "Issue 20257 - Add wait(Pid, Duration) for windows" mentioning this issue: - Issue 20257 - Add wait(Pid, Duration) for windows `wait(Pid, Duration)` allows to wait until the process terminates or the timeout expires. It's currently windows-only because a decent posix implementation is quite difficult and this allows us to sort out the API beforehand. https://github.com/dlang/phobos/pull/7528
dlang/phobos pull request #7528 "Issue 20257 - Add wait(Pid, Duration) for windows" was merged into master: - 0317d1d63b625d69c35060a6108ded418eab8815 by MoonlightSentinel: Issue 20257 - Add wait(Pid, Duration) for windows `wait(Pid, Duration)` allows to wait until the process terminates or the timeout expires. It's currently windows-only because a decent posix implementation is quite difficult and this allows us to sort out the API beforehand. https://github.com/dlang/phobos/pull/7528
Marking this as resolved as I originally only requested this for win32. It seems like nobody else is missing it on other platforms.