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

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

XMLWordPrintable

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

      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. 

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

            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

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes