* @brief Wait for the result of every AFuture. * @deprecated use onAllComplete instead. */
| 194 | * @deprecated use onAllComplete instead. |
| 195 | */ |
| 196 | void waitForAll() { |
| 197 | // wait from the end to avoid idling (see AFuture::wait for details) |
| 198 | for (const AFuture<T>& v : aui::reverse_iterator_wrap(*this)) { |
| 199 | v.operator*(); |
| 200 | } |
| 201 | } |
| 202 | |
| 203 | /** |
| 204 | * @brief Find AFutures that encountered an exception. If such AFuture is found, AInvocationTargetException is |