RFR: 8336479: Provide Process.waitFor(Duration) [v2]

Naoto Sato naoto at openjdk.org
Wed Jul 17 21:41:16 UTC 2024


> Proposing a new overload method for `Process#waitFor()` which takes a `Duration` for the timeout value. This will reduce the possibility for making mistakes with the `TimeUnit` in the other overload method. A corresponding CSR has also been drafted.

Naoto Sato has updated the pull request incrementally with one additional commit since the last revision:

  ProcessTools overriding one-arg waitFor()

-------------

Changes:
  - all: https://git.openjdk.org/jdk/pull/20220/files
  - new: https://git.openjdk.org/jdk/pull/20220/files/4d2e3fc8..ff3d259c

Webrevs:
 - full: https://webrevs.openjdk.org/?repo=jdk&pr=20220&range=01
 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=20220&range=00-01

  Stats: 10 lines in 1 file changed: 10 ins; 0 del; 0 mod
  Patch: https://git.openjdk.org/jdk/pull/20220.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/20220/head:pull/20220

PR: https://git.openjdk.org/jdk/pull/20220


More information about the core-libs-dev mailing list