-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
Closed
Labels
FeatureGood first issueIdeal for your first contribution! (some Symfony experience may be required)Ideal for your first contribution! (some Symfony experience may be required)Process
Description
Description
I run watch webpack build by symfony process,but when i can not check if is building before wait.so ,i should a public method in process class to get lastOutputTime to check it.
Example
$this->runner($params, $messages, true,function(Process $process,$progressBar){
$process->setTimeout(null);
$process->start();
$process->wait(function ($type, $buffer) use($progressBar) {
if (microtime(true) - $process->getLastOutputTime() > 10){
$this->output->writeln("<fg=yellow>start to watch</>");
}
});
});
Metadata
Metadata
Assignees
Labels
FeatureGood first issueIdeal for your first contribution! (some Symfony experience may be required)Ideal for your first contribution! (some Symfony experience may be required)Process