#include <type_traits>
#include <seastar/core/future.hh>
+#include <seastar/core/loop.hh>
#include <seastar/util/tuple_utils.hh>
#include <seastar/util/critical_alloc_section.hh>
if ((futures.available() && ...)) {
return ResolvedTupleTransform::make_ready_future(std::make_tuple(std::move(futures)...));
}
- auto state = [&] () noexcept {
- memory::scoped_critical_alloc_section _;
+ auto state = [&, s = memory::scoped_critical_alloc_section()] () noexcept {
return new when_all_state(std::move(futures)...);
}();
auto ret = state->p.get_future();