Returns a future that will be realized when a caller can retry getting 'this'. Must be called inside the mutex of 'shard_'.
| 294 | // Returns a future that will be realized when a caller can retry getting |
| 295 | // 'this'. Must be called inside the mutex of 'shard_'. |
| 296 | folly::SemiFuture<bool> getFuture() { |
| 297 | if (promise_ == nullptr) { |
| 298 | promise_ = std::make_unique<folly::SharedPromise<bool>>(); |
| 299 | } |
| 300 | return promise_->getSemiFuture(); |
| 301 | } |
| 302 | |
| 303 | // Holds an owning reference to the file number. |
| 304 | FileCacheKey key_; |
no outgoing calls