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

QFuture default constructor gives inconsistent state

XMLWordPrintable

      The QFuture default constructor documentation states that an empty, canceled future is constructed. However, the state is set to ‘Started | Finished | Canceled’ based on the code. Should it be just ‘Canceled’ when constructed?

      Also the documentation should mention that isCanceled() returns true for just created future. If the code is right and the default state should be all three above mentioned, then the documentation should clearly state this too.

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

            sonakur Sona Kurazyan
            qtcomsupport Qt Support
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes