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

It should be possible to ignore the result of QTaskBuilder::spawn

    XMLWordPrintable

Details

    • User Story
    • Resolution: Done
    • P3: Somewhat important
    • 6.0
    • None
    • Core: QtConcurrent
    • None
    • 13
    • Qt6_Foundation_ Sprint 6
    • 678b9f78a5af4513ed4e988de90148584a2ae90d

    Description

      QTaskBuilder::spawn marked as [[nodiscard]], but it might be required to ignore a future object returned from this function. In this case, it should be explicitly declared. There are a few ways of implementation:

      1) Add explicit function named like "ignoreResult" to the builder class

      2) Add a tag (e.g. IgnoreResult) to the spawn function call

      Ideally, a separate function specialization that returns void should be implemented. 

      Attachments

        Issue Links

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

          Activity

            People

              vitaly.fanaskov Vitaly Fanaskov
              vitaly.fanaskov Vitaly Fanaskov
              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