BitShares-Core  5.0.0
BitShares blockchain implementation and command-line interface software
Public Member Functions | Friends | List of all members
fc::future< void > Class Template Reference

#include <future.hpp>

Public Member Functions

 future (const typename promise< void >::ptr &p)
 
 future (typename promise< void >::ptr &&p)
 
 future (const future< void > &f)
 
 future ()
 
futureoperator= (future< void > &&f)
 
void wait (const microseconds &timeout=microseconds::maximum())
 
void wait_until (const time_point &tp)
 
bool valid () const
 
bool canceled () const
 
void cancel_and_wait (const char *reason FC_CANCELATION_REASON_DEFAULT_ARG)
 
bool ready () const
 
bool error () const
 
void cancel (const char *reason FC_CANCELATION_REASON_DEFAULT_ARG) const
 
template<typename CompletionHandler >
void on_complete (CompletionHandler &&c)
 

Friends

class thread
 

Detailed Description

template<>
class fc::future< void >

Definition at line 283 of file future.hpp.

Constructor & Destructor Documentation

fc::future< void >::future ( const typename promise< void >::ptr &  p)
inline

Definition at line 285 of file future.hpp.

fc::future< void >::future ( typename promise< void >::ptr &&  p)
inline

Definition at line 286 of file future.hpp.

fc::future< void >::future ( const future< void > &  f)
inline

Definition at line 287 of file future.hpp.

fc::future< void >::future ( )
inline

Definition at line 288 of file future.hpp.

Member Function Documentation

void fc::future< void >::cancel ( const char *reason  FC_CANCELATION_REASON_DEFAULT_ARG) const
inline

Definition at line 332 of file future.hpp.

void fc::future< void >::cancel_and_wait ( const char *reason  FC_CANCELATION_REASON_DEFAULT_ARG)
inline

Definition at line 314 of file future.hpp.

bool fc::future< void >::canceled ( ) const
inline

Definition at line 312 of file future.hpp.

bool fc::future< void >::error ( ) const
inline
Precondition
valid()

Definition at line 330 of file future.hpp.

template<typename CompletionHandler >
void fc::future< void >::on_complete ( CompletionHandler &&  c)
inline

Definition at line 335 of file future.hpp.

future& fc::future< void >::operator= ( future< void > &&  f)
inline

Definition at line 290 of file future.hpp.

bool fc::future< void >::ready ( ) const
inline
Precondition
valid()

Definition at line 327 of file future.hpp.

bool fc::future< void >::valid ( ) const
inline

Definition at line 311 of file future.hpp.

void fc::future< void >::wait ( const microseconds timeout = microseconds::maximum())
inline
Precondition
valid()
Postcondition
ready()
Exceptions
timeout

Definition at line 299 of file future.hpp.

void fc::future< void >::wait_until ( const time_point tp)
inline
Precondition
valid()
Postcondition
ready()
Exceptions
timeout

Definition at line 307 of file future.hpp.

Friends And Related Function Documentation

friend class thread
friend

Definition at line 340 of file future.hpp.


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