#ifndef PLATFORM_API_FUTURE_H_ #define PLATFORM_API_FUTURE_H_ #include "platform/exception.h" namespace location { namespace nearby { // A Future represents the result of an asynchronous computation. // // https://docs.oracle.com/javase/8/docs/api/java/util/concurrent/Future.html template class Future { public: virtual ~Future() {} virtual ExceptionOr get() = 0; // throws Exception::INTERRUPTED, Exception::EXECUTION }; } // namespace nearby } // namespace location #endif // PLATFORM_API_FUTURE_H_