code: 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);
      }
docs: Limits the size of the result.
  
  @param int $limit
  @return BufferedIterable
  @throws \InvalidArgumentException if $limit is not a number or <= 0