YACLib
C++ library for concurrent tasks execution
Loading...
Searching...
No Matches
fail_policy.hpp
Go to the documentation of this file.
1
#pragma once
2
3
namespace
yaclib
{
4
5
/**
6
* This Policy describe how algorithm interpret if Future will be fulfilled by fail (exception or error)
7
*
8
* None -- fail same as ok, another words save all fails
9
* FirstFail -- save first fail, default for WhenAll
10
* LastFail -- save last fail, default for WhenAny
11
*/
12
enum class
FailPolicy
:
unsigned
char
{
13
None
= 0,
14
FirstFail
= 1,
15
LastFail
= 2,
16
};
17
18
}
// namespace yaclib
yaclib
Definition
base_core.hpp:18
yaclib::FailPolicy
FailPolicy
This Policy describe how algorithm interpret if Future will be fulfilled by fail (exception or error)
Definition
fail_policy.hpp:12
yaclib::FailPolicy::FirstFail
@ FirstFail
yaclib::FailPolicy::LastFail
@ LastFail
yaclib::FailPolicy::None
@ None
include
yaclib
util
fail_policy.hpp
Generated by
1.9.8