Method: Orchestrate::RefList::Fetcher#lazy

Defined in:
lib/orchestrate/refs.rb

#lazyEnumerator::Lazy

Creates a Lazy Enumerator for the Fetcher. If called inside the Application's #in_parallel block, pre-fetches the first page of results.

Returns:

  • (Enumerator::Lazy)


140
141
142
143
# File 'lib/orchestrate/refs.rb', line 140

def lazy
  return each.lazy if key_value.collection.app.inside_parallel?
  super
end