Details
-
User Story
-
Resolution: Done
-
P3: Somewhat important
-
None
-
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
- relates to
-
QTBUG-82950 Provide "fluent interface" for QtConcurrent::run
- Closed
For Gerrit Dashboard: QTBUG-83175 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
296032,4 | QTaskBuilder::spawn: add an overload that doesn't return a future object | dev | qt/qtbase | Status: MERGED | +2 | 0 |