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.
2 parents 8666ca5 + 4493238 commit b9b3165Copy full SHA for b9b3165
components/process.rst
@@ -102,6 +102,20 @@ are done doing other stuff::
102
}
103
});
104
105
+Stopping a Process
106
+------------------
107
+
108
+Any asynchronous process can be stopped at any time with the
109
+:method:`Symfony\\Component\\Process\\Process::stop` method. This method takes
110
+a timeout as its argument. Once the timeout is reached, the process is terminated.
111
112
+ $process = new Process('ls -lsa');
113
+ $process->start();
114
115
+ // ... do other things
116
117
+ $process->stop(3);
118
119
Executing PHP Code in Isolation
120
-------------------------------
121
0 commit comments