|
|
@ -286,6 +286,19 @@ void AbslStringify(Sink& sink, const Poll<T>& poll) { |
|
|
|
absl::Format(&sink, "%v", poll.value()); |
|
|
|
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> |
|
|
|
template <typename Sink, typename T> |
|
|
|
void AbslStringify(Sink& sink, const Poll<absl::optional<T>>& poll) { |
|
|
|
void AbslStringify(Sink& sink, const Poll<absl::optional<T>>& poll) { |
|
|
|
if (poll.pending()) { |
|
|
|
if (poll.pending()) { |
|
|
|