Class: GraphQL::Batch::Promise

Inherits:
Promise
  • Object
show all
Defined in:
lib/graphql/batch/promise.rb

Instance Method Summary collapse

Instance Method Details

#deferObject



7
8
9
# File 'lib/graphql/batch/promise.rb', line 7

def defer
  Executor.current.defer { super }
end

#waitObject



3
4
5
# File 'lib/graphql/batch/promise.rb', line 3

def wait
  Executor.current.wait(self)
end