protected function poolsByQueue(Supervisor $supervisor)
    {
        return $supervisor->processPools->mapWithKeys(function ($pool) {
            return [$pool->queue() => $pool];
        });
    }
protected function poolsByQueue(Supervisor $supervisor)
    {
        return $supervisor->processPools->mapWithKeys(function ($pool) {
            return [$pool->queue() => $pool];
        });
    }
protected function poolsByQueue ( Supervisor $ supervisor ) { return $ supervisor -> processPools -> mapWithKeys ( function ( $ pool ) { return [ $ pool -> queue ( ) => $ pool ] ; } ) ; }
Get the process pools keyed by their queue name.

@param  \Laravel\Horizon\Supervisor  $supervisor
@return \Illuminate\Support\Collection
Get the process pools keyed by their queue name .