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