carno-php / timer
Installs: 1 049
Dependents: 11
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 1
Open Issues: 0
This package is auto-updated.
Last update: 2024-10-17 22:14:00 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); });