public function searchAllRegionsForOrders(Array $regionHrefs, OrderHandler $orderHandler) {
        $orderHandler->createRegionRequestsForPool($regionHrefs);

        $pool         = $orderHandler->processMultipleRegions();
        $promise      = $pool->promise();

        $promise->wait();
    }
public function searchAllRegionsForOrders(Array $regionHrefs, OrderHandler $orderHandler) {
        $orderHandler->createRegionRequestsForPool($regionHrefs);

        $pool         = $orderHandler->processMultipleRegions();
        $promise      = $pool->promise();

        $promise->wait();
    }
public function searchAllRegionsForOrders ( Array $ regionHrefs , OrderHandler $ orderHandler ) { $ orderHandler -> createRegionRequestsForPool ( $ regionHrefs ) ; $ pool = $ orderHandler -> processMultipleRegions ( ) ; $ promise = $ pool -> promise ( ) ; $ promise -> wait ( ) ; }
Searches All Regions for orders.

Searches all regions for any orders.

@param array of region urls to search through.
@param OrderHandler $orderHandler
Searches All Regions for orders .