Method: Orchestrate::RefList#lazy

Defined in:
lib/orchestrate/refs.rb

#lazyEnumerator::Lazy

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

Returns:

  • (Enumerator::Lazy)


57
58
59
# File 'lib/orchestrate/refs.rb', line 57

def lazy
  Fetcher.new(self).lazy
end