22using namespace std::chrono_literals;
27TEST(Example, WhenAll) {
30 std::vector<yaclib::FutureOn<int>> futs;
35 for (
int i = 0; i < 5; ++i) {
47 std::vector<int> ints = std::move(all).Get().Ok();
49 std::cout <<
"All ints: ";
51 std::cout << v <<
", ";
53 std::cout << std::endl;