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

Function _check_abandoned

include/process/check.hpp:108–120  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

106
107template <typename T>
108Option<Error> _check_abandoned(const process::Future<T>& f)
109{
110 if (f.isReady()) {
111 return Some("is READY");
112 } else if (f.isDiscarded()) {
113 return Some("is DISCARDED");
114 } else if (f.isFailed()) {
115 return Some("is FAILED: " + f.failure());
116 } else if (!f.isAbandoned()) {
117 return Some("is not abandoned");
118 }
119 return None();
120}
121
122// TODO(dhamon): CHECK_NPENDING, CHECK_NREADY, etc.
123

Callers

nothing calls this directly

Calls 4

isReadyMethod · 0.80
isDiscardedMethod · 0.80
isFailedMethod · 0.80
isAbandonedMethod · 0.80

Tested by

no test coverage detected