| 90 | |
| 91 | template <typename T> |
| 92 | Option<Error> _check_failed(const process::Future<T>& f) |
| 93 | { |
| 94 | if (f.isPending()) { |
| 95 | return Some("is PENDING"); |
| 96 | } else if (f.isReady()) { |
| 97 | return Some("is READY"); |
| 98 | } else if (f.isDiscarded()) { |
| 99 | return Some("is DISCARDED"); |
| 100 | } else { |
| 101 | CHECK(f.isFailed()); |
| 102 | return None(); |
| 103 | } |
| 104 | } |
| 105 | |
| 106 | |
| 107 | template <typename T> |
nothing calls this directly
no test coverage detected