Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Process ¶
type Process struct {
ExecCmd
}
func NewWithCmd ¶
func (*Process) WaitOrKill ¶
WaitOrKill waits for the already-started process by calling its Wait method.
If the process does not return before ctx is done, WaitOrKill sends it the given interrupt signal. If killDelay is positive, WaitOrKill waits that additional period for Wait to return before sending os.Kill.
Adapted from Go core: https://github.com/golang/go/blob/8981092d71aee273d27b0e11cf932a34d4d365c1/src/cmd/go/script_test.go#L1131-L1190
Click to show internal directories.
Click to hide internal directories.