nulib/php/tests/app/LongTaskApp.php

21 lines
356 B
PHP

<?php
namespace nulib\app;
use nur\cli\Application;
use nulib\output\msg;
class LongTaskApp extends Application {
const APPCODE = "long-task";
const USE_LOGFILE = true;
const USE_RUNFILE = true;
const USE_RUNLOCK = true;
function main() {
$step = 100;
while (--$step > 0) {
msg::print("step $step");
sleep(1);
}
}
}