* Wait for particular port status. We always do a minium of one try regardless of timeouts, so setting a timeout * of 0 means only one try * * @param inUse true means wait for port to be ready to use. False means wait for port to close * @return a promise. On failure, the error
(
port: number, host = TcpPortScanner.DefaultHost, inUse = true,
checkLocalHostAliaes = true, retryTimeMs = 100, timeOutMs = 5000)
| 391 | * for other failures |
| 392 | */ |
| 393 | public static waitForPortStatus( |
| 394 | port: number, host = TcpPortScanner.DefaultHost, inUse = true, |
| 395 | checkLocalHostAliaes = true, retryTimeMs = 100, timeOutMs = 5000): Promise<void> { |
| 396 | retryTimeMs = Math.max(retryTimeMs, 1); |
| 397 | const opts = new PortStatusArgs(inUse, port, host, checkLocalHostAliaes, retryTimeMs, timeOutMs); |
| 398 | return TcpPortScanner.waitForPortStatusEx(opts); |
| 399 | } |
| 400 | |
| 401 | /** |
| 402 | * Wait for port to open. We always do a minium of one try regardless of timeouts, so setting a timeout |
nothing calls this directly
no test coverage detected