nulib/php/tests/app/LongTaskApp.php

21 lines
356 B
PHP
Raw Normal View History

2024-07-19 16:38:19 +04:00
<?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);
}
}
}