MCPcopy Create free account
hub / github.com/3rdparty/libprocess / _check_failed

Function _check_failed

include/process/check.hpp:92–104  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

90
91template <typename T>
92Option<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
107template <typename T>

Callers

nothing calls this directly

Calls 4

isPendingMethod · 0.80
isReadyMethod · 0.80
isDiscardedMethod · 0.80
isFailedMethod · 0.80

Tested by

no test coverage detected