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

Add support for creating a ready QFuture

XMLWordPrintable

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

      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)

        For Gerrit Dashboard: QTBUG-86713
        # Subject Branch Project Status CR V

            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

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes