Using conccurrent-ruby, how can I execute a set of promises and then get the results?
Here is an example of what I would like to be able to do (The test passes because it never reaches the 'then' block.
it "can aggregate the results" do
Concurrent::Promise::all?(
Concurrent::Promise.execute { 42 },
Concurrent::Promise.execute { 43 },
).then do |result|
binding.pry
expect(result).to eq([42, 43])
end
end