BitShares-Core  7.0.2
BitShares blockchain node software and command-line wallet software
Public Member Functions | Friends | List of all members
fc::future< void > Class 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

Definition at line 283 of file future.hpp.

Constructor & Destructor Documentation

◆ future() [1/4]

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

Definition at line 285 of file future.hpp.

◆ future() [2/4]

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

Definition at line 286 of file future.hpp.

◆ future() [3/4]

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

Definition at line 287 of file future.hpp.

◆ future() [4/4]

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

Definition at line 288 of file future.hpp.

Member Function Documentation

◆ cancel()

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

Definition at line 332 of file future.hpp.

◆ cancel_and_wait()

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

Definition at line 314 of file future.hpp.

◆ canceled()

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

Definition at line 312 of file future.hpp.

◆ error()

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

Definition at line 330 of file future.hpp.

◆ on_complete()

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

Definition at line 335 of file future.hpp.

◆ operator=()

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

Definition at line 290 of file future.hpp.

◆ ready()

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

Definition at line 327 of file future.hpp.

◆ valid()

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

Definition at line 311 of file future.hpp.

◆ wait()

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.

◆ wait_until()

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

◆ thread

friend class thread
friend

Definition at line 340 of file future.hpp.


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