![]() |
XRootD
|
A wrapper handler for a std::promise / std::future, overload for void type. More...
#include <XrdClOperationHandlers.hh>
Public Member Functions | |
FutureWrapper (std::future< void > &ftr) | |
void | HandleResponse (XRootDStatus *status, AnyObject *response) |
Callback method. More... | |
![]() | |
FutureWrapperBase (std::future< void > &ftr) | |
virtual | ~FutureWrapperBase () |
Destructor. More... | |
![]() | |
virtual | ~ResponseHandler () |
virtual void | HandleResponseWithHosts (XRootDStatus *status, AnyObject *response, HostList *hostList) |
Additional Inherited Members | |
![]() | |
static ResponseHandler * | Wrap (std::function< void(XRootDStatus &, AnyObject &)> func) |
static ResponseHandler * | Wrap (std::function< void(XRootDStatus *, AnyObject *)> func) |
![]() | |
void | SetException (const XRootDStatus &err) |
![]() | |
bool | fulfilled |
std::promise< void > | prms |
promise that corresponds to the future More... | |
A wrapper handler for a std::promise / std::future, overload for void type.
Definition at line 543 of file XrdClOperationHandlers.hh.
|
inline |
Constructor,
ftr | : the future to be linked with this handler |
Definition at line 552 of file XrdClOperationHandlers.hh.
|
inlinevirtual |
Callback method.
Reimplemented from XrdCl::ResponseHandler.
Definition at line 559 of file XrdClOperationHandlers.hh.
References XrdCl::FutureWrapperBase< Response >::fulfilled, XrdCl::Status::IsOK(), XrdCl::FutureWrapperBase< Response >::prms, and XrdCl::FutureWrapperBase< Response >::SetException().