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

QFuture::then can't handle another QFuture as result

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Not Evaluated Not Evaluated
    • None
    • 6.9.1
    • Core: Threads
    • None
    • All

      I'd like to be able to do something like:

      auto future = asyncOp().then(myQObject, [this](int res){ return anotherAsyncOp(res); }).then(myQObject, [this](float res){ ...});

      asyncOp and anotherAsyncOp returns a QFuture<T>.

      See the attached example for more info.

       

        1. main.cpp
          2 kB
          BogDan Vatra
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            thiago Thiago Macieira
            taipan BogDan Vatra
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes