carno-php/timer

Installs: 1 121

Dependents: 11

Suggesters: 0

Security: 0

Stars: 0

Watchers: 1

Forks: 1

Open Issues: 0

pkg:composer/carno-php/timer

1.0.0 2018-08-15 09:28 UTC

This package is auto-updated.

Last update: 2025-10-18 00:09:21 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);
});