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