src/Expose/Queue/Mongo.php
public function getPending($limit = 10)
    {
        $results = $this->getCollection()
            ->find(array('processed' => false))
            ->limit($limit);

        return iterator_to_array($results);
    }
public function getPending($limit = 10)
    {
        $results = $this->getCollection()
            ->find(array('processed' => false))
            ->limit($limit);

        return iterator_to_array($results);
    }
public function getPending ( $ limit = 10 ) { $ results = $ this -> getCollection ( ) -> find ( array ( 'processed' => false ) ) -> limit ( $ limit ) ; return iterator_to_array ( $ results ) ; }
Get the current list of pending records

@return array Record results
Get the current list of pending records