wait_for_finish {xopen} | R Documentation |
With timeout(s), and interaction, if the session is interactive.
wait_for_finish(process, target, timeout1 = 2000, timeout2 = 5000)
process |
The process. It should not have |
timeout1 |
Timeout before message. |
timeout2 |
Timeout after message. |
First we wait for 2s. If the process is still alive, then we give it another 5s, but first let the user know that they can interrupt the process.