Returns either an error or a pointer to the RecvTensorResponse. Blocks waiting for the future if it is not yet available.
| 268 | // Returns either an error or a pointer to the RecvTensorResponse. |
| 269 | // Blocks waiting for the future if it is not yet available. |
| 270 | xla::StatusOr<RecvTensorResponse*> Get() { |
| 271 | done_.WaitForNotification(); |
| 272 | absl::MutexLock lock(&mu_); |
| 273 | if (!status_.ok()) return status_; |
| 274 | return &value_; |
| 275 | } |
| 276 | |
| 277 | private: |
| 278 | friend class XrtTfContext; |