public function addAnonymousPromise(callable $promise, ?int $priority = null)
    {
        $priority = $priority ?? static::DEFAULT_PRIORITY;

        $this->pool[] = compact('priority', 'promise');
    }