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

Add support for continuations​ to QFuture

    XMLWordPrintable

Details

    • User Story
    • Resolution: Done
    • P2: Important
    • 6.0
    • None
    • Core: Threads
    • None
    • All
    • 21
    • Qt6_Foundation_ Sprint 3, Qt6_Foundation_ Sprint 4, Qt6_Foundation_ Sprint 5

    Description

      Provide a way of chaining callbacks, so that the users can write code like this:

      QFuture<ResultType> future = ... ; 
      future.then(callable1).then(callable2)...
      

      Additionally, consider adding .failed for handling the cases when there was an error, and .finally, to be run in any case.

      Attachments

        Issue Links

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

          Activity

            People

              sonakur Sona Kurazyan
              sonakur Sona Kurazyan
              Maurice Kalinowski Maurice Kalinowski
              Alex Blasche Alex Blasche
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes