Streaming
Flip one flag and a single response streams many updates.
Read the docs →.phlo
// stream each step with chunk(); seal the final state with apply()
route async POST report run {
foreach ($this->steps AS $i => $step){
$step->run
chunk(inner: ['#bar' => $i + 1 .' / '. count($this->steps)])
}
apply(inner: ['#bar' => 'done'])
}
0%idle
