Dobby 3.0
Dobby “Docker based Thingy” is a tool for managing and running OCI containers using crun
|
Result object for async and deferred results. More...
#include <DobbyAsync.h>
Public Member Functions | |
bool | getResult () |
Private Member Functions | |
DobbyAsyncResult (IDobbyAsyncResultPrivate *priv) | |
Private Attributes | |
IDobbyAsyncResultPrivate *const | mPrivate |
Friends | |
std::shared_ptr< DobbyAsyncResult > | DobbyAsyncImpl (const std::string &name, const std::function< bool()> &func) |
std::shared_ptr< DobbyAsyncResult > | DobbyDeferredImpl (const std::function< bool()> &func) |
Result object for async and deferred results.
The behaviour of this object is different depending on how it was created; for DobbyAsync objects, the getResults() method will wait for the function to complete in a separate thread before returning the results. For DobbyDeferred objects, the function is executed in the current thread when the getResults() method is called.