This is called by the worker thread and handles the mechanics of notifying the caller and conveying status when Execute() completes.
| 261 | /// This is called by the worker thread and handles the mechanics of notifying |
| 262 | /// the caller and conveying status when Execute() completes. |
| 263 | void WorkerExecute() { |
| 264 | Status status = Execute(); |
| 265 | DCHECK(!done_promise_.IsSet()); |
| 266 | discard_result(done_promise_.Set(status)); |
| 267 | } |
| 268 | |
| 269 | /// Wait for the operation to complete or time out with the specified limit |
| 270 | /// 'timeout_millis' given that the caller has already waited 'time_used_millis'. |
no test coverage detected