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

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

Public Member Functions

 Promise ()
 
 Promise (const Promise &)=delete
 
Promise & operator= (const Promise &)=delete
 
 Promise (Promise &&) noexcept=default
 
Promise & operator= (Promise &&other) noexcept
 
 ~Promise ()
 
Future< T > future () const
 
bool SetCancellationCallback (std::function< void()> cancel)
 
bool SetValue (T value)
 
bool SetError (absl::Status error)
 
bool SetResult (absl::StatusOr< T > result)
 

Constructor & Destructor Documentation

◆ Promise() [1/3]

template<typename T >
symbian::concurrency::Promise< T >::Promise ( )
inline

◆ Promise() [2/3]

template<typename T >
symbian::concurrency::Promise< T >::Promise ( const Promise< T > &  )
delete

◆ Promise() [3/3]

template<typename T >
symbian::concurrency::Promise< T >::Promise ( Promise< T > &&  )
defaultnoexcept

◆ ~Promise()

template<typename T >
symbian::concurrency::Promise< T >::~Promise ( )
inline

Member Function Documentation

◆ future()

template<typename T >
Future< T > symbian::concurrency::Promise< T >::future ( ) const
inline

◆ operator=() [1/2]

template<typename T >
Promise & symbian::concurrency::Promise< T >::operator= ( const Promise< T > &  )
delete

◆ operator=() [2/2]

template<typename T >
Promise & symbian::concurrency::Promise< T >::operator= ( Promise< T > &&  other)
inlinenoexcept

◆ SetCancellationCallback()

template<typename T >
bool symbian::concurrency::Promise< T >::SetCancellationCallback ( std::function< void()>  cancel)
inline

◆ SetError()

template<typename T >
bool symbian::concurrency::Promise< T >::SetError ( absl::Status  error)
inline

◆ SetResult()

template<typename T >
bool symbian::concurrency::Promise< T >::SetResult ( absl::StatusOr< T >  result)
inline

◆ SetValue()

template<typename T >
bool symbian::concurrency::Promise< T >::SetValue ( T  value)
inline

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