public function pruneTerminatingProcesses()
    {
        $this->stopTerminatingProcessesThatAreHanging();

        $this->terminatingProcesses = collect(
            $this->terminatingProcesses
        )->filter(function ($process) {
            return $process['process']->isRunning();
        })->all();
    }
public function pruneTerminatingProcesses()
    {
        $this->stopTerminatingProcessesThatAreHanging();

        $this->terminatingProcesses = collect(
            $this->terminatingProcesses
        )->filter(function ($process) {
            return $process['process']->isRunning();
        })->all();
    }
public function pruneTerminatingProcesses ( ) { $ this -> stopTerminatingProcessesThatAreHanging ( ) ; $ this -> terminatingProcesses = collect ( $ this -> terminatingProcesses ) -> filter ( function ( $ process ) { return $ process [ 'process' ] -> isRunning ( ) ; } ) -> all ( ) ; }
Remove any non-running processes from the terminating process list.

@return void
Remove any non - running processes from the terminating process list .