async_patterns:: PendingCall
Summary
Constructors and Destructors |
|
---|---|
PendingCall(Call call, Submit submit, internal::Tag< ReturnType >)
|Call| should be a callable that takes zero arguments and returns |ReturnType|.
|
|
PendingCall(const PendingCall &)
|
|
PendingCall(PendingCall &&)
|
|
~PendingCall()
|
Public functions |
|
---|---|
Then(async_patterns::Callback< void(R)> on_result)&&
|
void
|
operator=(const PendingCall &)=delete
|
|
operator=(PendingCall &&) noexcept=delete
|
|
promise()&&
|
fpromise::promise< ReturnType >
|
Protected functions |
|
---|---|
CallWithContinuation(Continuation continuation)
|
void
|
Public functions
PendingCall
PendingCall( Call call, Submit submit, internal::Tag< ReturnType > )
|Call| should be a callable that takes zero arguments and returns |ReturnType|.
|Submit| should be a callable that takes a |Call| and submits it for asynchronous execution. In addition, it should have an empty state reachable by calling |reset| and support checking for emptiness using |has_value|.
PendingCall
PendingCall( const PendingCall & )=delete
PendingCall
PendingCall( PendingCall && ) noexcept=delete
Then
void Then( async_patterns::Callback< void(R)> on_result )&&
operator=
PendingCall & operator=( const PendingCall & )=delete
operator=
PendingCall & operator=( PendingCall && ) noexcept=delete
promise
fpromise::promise< ReturnType > promise()&&
~PendingCall
~PendingCall()
Protected functions
CallWithContinuation
void CallWithContinuation( Continuation continuation )