Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-102704

QFuture: Branching/chaining continuations

    XMLWordPrintable

Details

    Description

      Some promise libraries allow multiple continuations from a single point, but QFuture seems to be limited to just a single line of execution. For example it would be great if it was possible to fork into two different branches from a single source:

      auto f = promise.future();
      f.then([]{});
      f.then([]{});
      

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            sonakur Sona Kurazyan
            poikelin Joni Poikelin
            Votes:
            4 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes