Sha256: c985bfc55b2c4106785cc6ce974e6ccb1e37e49eb44e2b671168db694ee94f25

Contents?: true

Size: 166 Bytes

Versions: 6

Compression:

Stored size: 166 Bytes

Contents

module GraphQL::Batch
  class Promise < ::Promise
    def defer
      executor = Executor.current
      executor ? executor.defer { super } : super
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
graphql-batch-0.3.5 lib/graphql/batch/promise.rb
graphql-batch-0.3.4 lib/graphql/batch/promise.rb
graphql-batch-0.3.3 lib/graphql/batch/promise.rb
graphql-batch-0.3.2 lib/graphql/batch/promise.rb
graphql-batch-0.3.1 lib/graphql/batch/promise.rb
graphql-batch-0.3.0 lib/graphql/batch/promise.rb