Method: Orchestrate::Collection#lazy

Defined in:
lib/orchestrate/collection.rb

#lazyEnumerator::Lazy

Creates a Lazy Enumerator for the Collection's KeyValue List. If called inside the app's #in_parallel block, pre-fetches the first page of results.

Returns:

  • (Enumerator::Lazy)


198
199
200
# File 'lib/orchestrate/collection.rb', line 198

def lazy
  KeyValueList.new(self).lazy
end