|
| Task (Callable &&callable, FailureDetector &&detector) |
| Instantiate a new Task with the given callable and failure detector. More...
|
|
template<typename NewFailureDetector > |
Task< Callable, NewFailureDetector > | failsIf (NewFailureDetector &&condition)&& |
| Create a new task using the current callable and a new failure condition. More...
|
|
template<typename... Args> |
auto | operator() (Args &&...args)& |
| Invoke the callable checking for failures. More...
|
|
template<typename... Args> |
auto | operator() (Args &&...args)&& |
| Same as operator()& , but also forwards the callable when invoking it.
|
|
template<typename Callable, typename FailureDetector>
class resilient::Task< Callable, FailureDetector >
Create a task
from a callable, using a Detector
to detect failures.
Wrap a callable object, making it return a Failable
when invoked.
Task
uses a detector to detect whether the invocation of the callable failed or not.
- Template Parameters
-
Callable | The callable object which will be used when invoking the task. |
FailureDetector | The detector that will be used to detect failures when invoking the callable. |