| 221 | promise->future().onDiscard(defer(this, &AwaitProcess::discarded)); |
| 222 | |
| 223 | foreach (const Future<T>& future, futures) { |
| 224 | future.onAny(defer(this, &AwaitProcess::waited, lambda::_1)); |
| 225 | future.onAbandoned(defer(this, &AwaitProcess::abandoned)); |
| 226 | } |
| 227 | } |
| 228 | |
| 229 | private: |