XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 4.0.0
    • C++

    Description

      This is useful for doing things like...

      Future<ItemVector> vec_fut = GetVectorOfThingsAsync();

      Future<AsyncGenerator<Item>> gen_fut = vec_fut.Then([] (const SomeVector& vec) { return MakeVectorGenerator(vec); };

      AsyncGenerator<Item> item_gen = MakeFutureFirstGenerator(gen_fut);

       

      The cost of the initial future is just part of the cost of getting the first item from the generator.

      Attachments

        Issue Links

          Activity

            People

              westonpace Weston Pace
              westonpace Weston Pace
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 0.5h
                  0.5h