Debian Codegraph @

man/wait_for_finish.Rd

raw
1 % Generated by roxygen2: do not edit by hand
2 % Please edit documentation in R/package.R
3 \name{wait_for_finish}
4 \alias{wait_for_finish}
5 \title{Wait for a process to finish}
6 \usage{
7 wait_for_finish(process, target, timeout1 = 2000, timeout2 = 5000)
8 }
9 \arguments{
10 \item{process}{The process. It should not have \code{stdout} or \code{stderr}
11 pipes, because that can make it freeze.}
12
13 \item{timeout1}{Timeout before message.}
14
15 \item{timeout2}{Timeout after message.}
16 }
17 \description{
18 With timeout(s), and interaction, if the session is interactive.
19 }
20 \details{
21 First we wait for 2s. If the process is still alive, then we give
22 it another 5s, but first let the user know that they can interrupt
23 the process.
24 }
25 \keyword{internal}