Wait until the function has completed, and return the Status returned by the function.
| 825 | // Wait until the function has completed, and return the Status |
| 826 | // returned by the function. |
| 827 | Status Wait() { |
| 828 | latch_.Wait(); |
| 829 | return status_; |
| 830 | } |
| 831 | |
| 832 | private: |
| 833 | const std::function<Status()> function_; |
no outgoing calls