36std::shared_ptr<DobbyAsyncResult> DobbyAsyncImpl(
const std::string &name,
37 const std::function<
bool()>& func);
38std::shared_ptr<DobbyAsyncResult> DobbyDeferredImpl(
const std::function<
bool()>& func);
57 friend std::shared_ptr<DobbyAsyncResult> DobbyAsyncImpl(
const std::string &name,
58 const std::function<
bool()>& func);
59 friend std::shared_ptr<DobbyAsyncResult> DobbyDeferredImpl(
const std::function<
bool()>& func);
87template<
class Function >
88static inline std::shared_ptr<DobbyAsyncResult> DobbyAsync(
const std::string &name,
91 return DobbyAsyncImpl(name, func);
94template<
class Function,
class... Args >
95static inline std::shared_ptr<DobbyAsyncResult> DobbyAsync(
const std::string &name,
96 Function&& f, Args&&... args)
98 return DobbyAsyncImpl(name, std::bind(std::forward<Function>(f),
99 std::forward<Args>(args)...));
114template<
class Function >
115static inline std::shared_ptr<DobbyAsyncResult> DobbyDeferred(Function func)
117 return DobbyDeferredImpl(func);
120template<
class Function,
class... Args >
121static inline std::shared_ptr<DobbyAsyncResult> DobbyDeferred(Function&& f, Args&&... args)
123 return DobbyDeferredImpl(std::bind(std::forward<Function>(f),
124 std::forward<Args>(args)...));
Result object for async and deferred results.
Definition DobbyAsync.h:55
Definition DobbyAsync.cpp:35