| 91 | |
| 92 | |
| 93 | void HttpProxy::next() |
| 94 | { |
| 95 | if (items.size() > 0) { |
| 96 | // Wait for any transition of the future. |
| 97 | items.front()->future.onAny( |
| 98 | defer(self(), &HttpProxy::waited, lambda::_1)); |
| 99 | } |
| 100 | } |
| 101 | |
| 102 | |
| 103 | void HttpProxy::waited(const Future<Response>& future) |