| 443 | GrpcEvent::~GrpcEvent() { stream_->DeleteEvent(id_); } |
| 444 | |
| 445 | Status GrpcEvent::Await() { |
| 446 | auto opt_status = stream_->WaitForEvent(id_, absl::InfiniteDuration()); |
| 447 | return opt_status.value(); |
| 448 | } |
| 449 | |
| 450 | absl::optional<Status> GrpcEvent::AwaitWithTimeout(absl::Duration duration) { |
| 451 | return stream_->WaitForEvent(id_, duration); |
no test coverage detected