|
libzypp 17.37.4
|
#include <zypp/ng/workflows/logichelpers.h>
Public Types | |
| template<class Type> | |
| using | MaybeAsyncRef = std::conditional_t< isAsync, AsyncOpRef<Type>, Type> |
Static Public Attributes | |
| static constexpr bool | is_async = isAsync |
Protected Member Functions | |
| template<typename T> | |
| auto | makeReadyResult (T &&res) |
Helper Mixin for types that need to return async results if they are compiled in a async context.
Definition at line 35 of file logichelpers.h.
| using zyppng::MaybeAsyncMixin< isAsync >::MaybeAsyncRef = std::conditional_t< isAsync, AsyncOpRef<Type>, Type> |
Evaluates to either AsyncOpRef<Type> or Type ,based on the isAsync template param.
Definition at line 44 of file logichelpers.h.
|
inlineprotected |
Returns the value given in res either as AsyncOpRef<T> or as T depending on the isAsync template param.
Definition at line 53 of file logichelpers.h.
|
staticconstexpr |
Definition at line 38 of file logichelpers.h.