TrinityCore
Loading...
Searching...
No Matches
TransactionCallback Class Reference

#include <Transaction.h>

Public Member Functions

 TransactionCallback (std::future< bool > &&future)
 
 TransactionCallback (TransactionCallback &&)=default
 
TransactionCallback & operator= (TransactionCallback &&)=default
 
void AfterComplete (std::function< void(bool)> callback) &
 
bool InvokeIfReady ()
 

Public Attributes

std::future< bool > m_future
 
std::function< void(bool)> m_callback
 

Detailed Description

Definition at line 106 of file Transaction.h.

Constructor & Destructor Documentation

◆ TransactionCallback() [1/2]

TransactionCallback::TransactionCallback ( std::future< bool > &&  future)
inline

Definition at line 109 of file Transaction.h.

◆ TransactionCallback() [2/2]

TransactionCallback::TransactionCallback ( TransactionCallback &&  )
default

Member Function Documentation

◆ AfterComplete()

◆ InvokeIfReady()

bool TransactionCallback::InvokeIfReady ( )

Definition at line 100 of file Transaction.cpp.

References m_callback, and m_future.

Referenced by InvokeAsyncCallbackIfReady().

◆ operator=()

TransactionCallback & TransactionCallback::operator= ( TransactionCallback &&  )
default

Member Data Documentation

◆ m_callback

std::function<void(bool)> TransactionCallback::m_callback

Definition at line 122 of file Transaction.h.

Referenced by InvokeIfReady().

◆ m_future

std::future<bool> TransactionCallback::m_future

Definition at line 121 of file Transaction.h.

Referenced by InvokeIfReady().


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