Symbian platform (C++)
SDK native APIs, runtime and tooling
Loading...
Searching...
No Matches
symbian::concurrency::Future< T > Class Template Reference

#include <cpp/symbian/concurrency/common/symbian/concurrency/future.h>

Public Member Functions

 Future ()=default
 
bool valid () const
 
bool IsReady () const
 
bool Cancel () const
 
std::optional< absl::StatusOr< T > > ResultIfReady () const
 
absl::StatusOr< T > Await (absl::Time deadline=absl::InfiniteFuture()) const
 
void OnReady (std::function< void(const absl::StatusOr< T > &)> callback) const
 

Friends

class Promise< T >
 

Constructor & Destructor Documentation

◆ Future()

template<typename T >
symbian::concurrency::Future< T >::Future ( )
default

Member Function Documentation

◆ Await()

template<typename T >
absl::StatusOr< T > symbian::concurrency::Future< T >::Await ( absl::Time  deadline = absl::InfiniteFuture< T >()) const
inline

◆ Cancel()

template<typename T >
bool symbian::concurrency::Future< T >::Cancel ( ) const
inline

◆ IsReady()

template<typename T >
bool symbian::concurrency::Future< T >::IsReady ( ) const
inline

◆ OnReady()

template<typename T >
void symbian::concurrency::Future< T >::OnReady ( std::function< void(const absl::StatusOr< T > &)>  callback) const
inline

◆ ResultIfReady()

template<typename T >
std::optional< absl::StatusOr< T > > symbian::concurrency::Future< T >::ResultIfReady ( ) const
inline

◆ valid()

template<typename T >
bool symbian::concurrency::Future< T >::valid ( ) const
inline

Friends And Related Symbol Documentation

◆ Promise< T >

template<typename T >
friend class Promise< T >
friend

The documentation for this class was generated from the following file: