| 168 | }; |
| 169 | |
| 170 | inline std::chrono::milliseconds invocation_request::get_time_remaining() const |
| 171 | { |
| 172 | using namespace std::chrono; |
| 173 | return duration_cast<milliseconds>(deadline - system_clock::now()); |
| 174 | } |
| 175 | |
| 176 | // Entry method |
| 177 | void run_handler(std::function<invocation_response(invocation_request const&)> const& handler); |