| 114 | */ |
| 115 | template <typename T> |
| 116 | process::Future<T> track( |
| 117 | const process::Future<T>& future, |
| 118 | const std::string& operation, |
| 119 | const std::string& component, |
| 120 | const std::map<std::string, std::string>& args = {}) |
| 121 | { |
| 122 | process::dispatch( |
| 123 | process.get(), |
| 124 | &PendingFutureTrackerProcess::addFuture<T>, |
| 125 | future, |
| 126 | FutureMetadata{operation, component, args}); |
| 127 | |
| 128 | return future; |
| 129 | } |
| 130 | |
| 131 | /** |
| 132 | * This method returns a list of pending futures represented as objects of |