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

Add support for creating a ready QFuture

    XMLWordPrintable

Details

    • Task
    • Resolution: Done
    • P3: Somewhat important
    • 6.1
    • None
    • Core: Threads
    • None
    • 5
    • 54875be84de059374920e4c0deacd13a41caaa13
    • Qt6_Foundation_Sprint 22

    Description

      It can be useful to have an easy way of creating a QFuture which already has a result (value or an exception). For example:

      QFuture<int> future = QtFuture::makeReadyFuture(5);
      
      QException e;
      QFuture<int> failedFuture = QtFuture::makeExceptionalFuture(e)

      Attachments

        Issue Links

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

          Activity

            People

              ivan.solovev Ivan Solovev
              sonakur Sona Kurazyan
              Maurice Kalinowski Maurice Kalinowski
              Alex Blasche Alex Blasche
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes