Inserts the callback into the queue.
Time complexity: O(log(n)).
public function insert(TimerCallback $callback) : void { \assert(!isset($this->pointers[$callback->id])); $node = \count($this->callbacks); $this->callbacks[$node] = $callback; $this->pointers[$callback->id] = $node; $this->heapifyUp($node); }