timer = new Timer(); if ($pool) { $this->timerId = $this->timer->tick( $this->interval / 1000, fn () => $this->pool->flushOne() ); } } public function __destruct() { $this->clear(); } public function clear() { if ($this->timerId) { $this->timer->clear($this->timerId); } $this->timerId = null; } public function isLowFrequency(): bool { return false; } }