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 2e95e18 commit 4493238Copy full SHA for 4493238
components/process.rst
@@ -93,6 +93,20 @@ are done doing other stuff::
93
}
94
});
95
96
+Stopping a Process
97
+------------------
98
+
99
+Any asynchronous process can be stopped at any time with the
100
+:method:`Symfony\\Component\\Process\\Process::stop` method. This method takes
101
+a timeout as its argument. Once the timeout is reached, the process is terminated.
102
103
+ $process = new Process('ls -lsa');
104
+ $process->start();
105
106
+ // ... do other things
107
108
+ $process->stop(3);
109
110
Executing PHP Code in Isolation
111
-------------------------------
112
0 commit comments