carno-php / timer
Installs: 1 085
Dependents: 11
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 1
Open Issues: 0
This package is auto-updated.
Last update: 2024-12-17 22:29:34 UTC
README
Installation
composer require carno-php/timer
Usages
$id = Timer::loop(10, function () { echo 'triggering every 10ms', PHP_EOL; }); Timer::after(500, function () use ($id) { echo 'trigger once after 500ms', PHP_EOL; echo 'and clear previous created loop timer', PHP_EOL; Timer::clear($id); });