Streaming
Flip one flag and a single response streams many updates.
.phlo
// flip one flag and every apply() flushes immediately.
route async POST report run {
%res->streaming = true
foreach ($this->steps AS $i => $step){
$step->run
apply(inner: ['#bar' => $i + 1 .' / '. count($this->steps)])
}
apply(inner: ['#bar' => 'done'])
}
0%idle