We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b9b9e3d commit fd8cf8bCopy full SHA for fd8cf8b
src/Illuminate/Process/InvokedProcess.php
@@ -112,6 +112,22 @@ public function latestErrorOutput()
112
return $this->process->getIncrementalErrorOutput();
113
}
114
115
+ /**
116
+ * Ensure that the process has not timed out.
117
+ *
118
+ * @return void
119
120
+ * @throws \Illuminate\Process\Exceptions\ProcessTimedOutException
121
+ */
122
+ public function ensureNotTimedOut()
123
+ {
124
+ try {
125
+ $this->process->checkTimeout();
126
+ } catch (SymfonyTimeoutException $e) {
127
+ throw new ProcessTimedOutException($e, new ProcessResult($this->process));
128
+ }
129
130
+
131
/**
132
* Wait for the process to finish.
133
*
0 commit comments