|
|
|
@ -286,6 +286,19 @@ void AbslStringify(Sink& sink, const Poll<T>& poll) { |
|
|
|
|
absl::Format(&sink, "%v", poll.value()); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
template <typename Sink, typename T> |
|
|
|
|
void AbslStringify(Sink& sink, const Poll<absl::StatusOr<T>>& poll) { |
|
|
|
|
if (poll.pending()) { |
|
|
|
|
absl::Format(&sink, "<<pending>>"); |
|
|
|
|
return; |
|
|
|
|
} |
|
|
|
|
if (poll.value().ok()) { |
|
|
|
|
absl::Format(&sink, "%v", *poll.value()); |
|
|
|
|
} else { |
|
|
|
|
absl::Format(&sink, "%v", poll.value().status()); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
template <typename Sink, typename T> |
|
|
|
|
void AbslStringify(Sink& sink, const Poll<absl::optional<T>>& poll) { |
|
|
|
|
if (poll.pending()) { |
|
|
|
|