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
3namespace 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 */
12enum class FailPolicy : unsigned char {
13 None = 0,
14 FirstFail = 1,
15 LastFail = 2,
16};
17
18} // namespace yaclib
FailPolicy
This Policy describe how algorithm interpret if Future will be fulfilled by fail (exception or error)