lib/graphql/batch/promise.rb in graphql-batch-0.2.2 vs lib/graphql/batch/promise.rb in graphql-batch-0.2.3
- old
+ new
@@ -1,7 +1,11 @@
module GraphQL::Batch
class Promise < ::Promise
def wait
Executor.current.wait(self)
end
+
+ def defer
+ Executor.current.defer { super }
+ end
end
end