| 125 | int32_t get_value_to_print() { return _value_to_print.get_future().get(); } |
| 126 | |
| 127 | bool print_is_pending() const { |
| 128 | return _print_finished_future.valid() && |
| 129 | _print_finished_future.wait_for(std::chrono::seconds(0)) != |
| 130 | std::future_status::ready; |
| 131 | } |
| 132 | void wait_for_print_result() const { _print_finished_future.wait(); } |
| 133 | void get_print_result() { _print_finished_future.get(); } |
| 134 | void set_print_success() { _print_finished.set_value(); } |
no test coverage detected