public function limit(int $limit) : BufferedIterable
    {
        Preconditions::checkArgument(0 < $limit, 'Limit must be a positive integer!');
        return new BufferedIterable($this->chunkProvider, $this->filter, $limit, $this->providerCallLimit);
    }
public function limit(int $limit) : BufferedIterable
    {
        Preconditions::checkArgument(0 < $limit, 'Limit must be a positive integer!');
        return new BufferedIterable($this->chunkProvider, $this->filter, $limit, $this->providerCallLimit);
    }
public function limit ( int $ limit ) : BufferedIterable { Preconditions :: checkArgument ( 0 < $ limit , 'Limit must be a positive integer!' ) ; return new BufferedIterable ( $ this -> chunkProvider , $ this -> filter , $ limit , $ this -> providerCallLimit ) ; }
Limits the size of the result.

@param int $limit
@return BufferedIterable
@throws \InvalidArgumentException if $limit is not a number or <= 0
Limits the size of the result .