From 93310474971664fd5036e14a32fafd8d006b8ad5 Mon Sep 17 00:00:00 2001 From: Adam Stankiewicz Date: Tue, 4 Oct 2016 16:19:55 +0200 Subject: [PATCH] Make all?, any? return something more meaningful --- lib/concurrent/promise.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/concurrent/promise.rb b/lib/concurrent/promise.rb index f23700e90..5846c6f08 100644 --- a/lib/concurrent/promise.rb +++ b/lib/concurrent/promise.rb @@ -479,6 +479,7 @@ def self.aggregate(method, *promises) unless completed.empty? || completed.send(method){|promise| promise.fulfilled? } raise PromiseExecutionError end + completed end composite end