start(); delay(0.1); $loops []= $loop; } delay(5); echo "Resuming prematurely all loops!".PHP_EOL; foreach ($loops as $loop) { $loop->resume(); } echo "OK done, waiting 5 more seconds!".PHP_EOL; delay(5); echo "Closing all loops!".PHP_EOL; delay(0.01);