Sha256: 6b55b014c3a06f59c8b3152196dd96657164d0c16481d8616ee3b5dffd8b9ff3

Contents?: true

Size: 177 Bytes

Versions: 3

Compression:

Stored size: 177 Bytes

Contents

module GraphQL::Batch
  class Promise < ::Promise
    def wait
      Executor.current.wait(self)
    end

    def defer
      Executor.current.defer { super }
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
graphql-batch-0.2.5 lib/graphql/batch/promise.rb
graphql-batch-0.2.4 lib/graphql/batch/promise.rb
graphql-batch-0.2.3 lib/graphql/batch/promise.rb