Flow/PromisePool.php
public function addAnonymousPromise(callable $promise, ?int $priority = null)
    {
        $priority = $priority ?? static::DEFAULT_PRIORITY;

        $this->pool[] = compact('priority', 'promise');
    }
public function addAnonymousPromise(callable $promise, ?int $priority = null)
    {
        $priority = $priority ?? static::DEFAULT_PRIORITY;

        $this->pool[] = compact('priority', 'promise');
    }
public function addAnonymousPromise ( callable $ promise , ? int $ priority = null ) { $ priority = $ priority ?? static :: DEFAULT_PRIORITY ; $ this -> pool [ ] = compact ( 'priority' , 'promise' ) ; }
Add no named callback to the pool
@param callable $promise
@param int|null $priority
Add no named callback to the pool