libzypp 17.38.5
wait.h
Go to the documentation of this file.
1/*---------------------------------------------------------------------\
2| ____ _ __ __ ___ |
3| |__ / \ / / . \ . \ |
4| / / \ V /| _/ _/ |
5| / /__ | | | | | | |
6| /_____||_| |_| |_| |
7| |
8----------------------------------------------------------------------/
9*
10* This file contains private API, this might break at any time between releases.
11* You have been warned!
12*
13*/
14#ifndef ZYPPNG_MONADIC_WAIT_H_INCLUDED
15#define ZYPPNG_MONADIC_WAIT_H_INCLUDED
16
17#include <zypp-core/ng/pipelines/operators.h>
18
19#ifndef ZYPP_ENABLE_ASYNC
20namespace zyppng {
21 namespace operators {
22
23 namespace detail {
24 struct JoinHelper {
25 template <typename T>
26 auto operator() ( T &&ops ) {
27 return std::forward<T>(ops);
28 }
29 };
30 }
34 inline auto join ( ) {
35 return detail::JoinHelper();
36 }
37 }
38}
39#endif
40
41#ifdef ZYPP_ENABLE_ASYNC
42#include <zypp-core/ng/async/pipelines/wait.hpp>
43#endif
44
45#endif
auto join()
Definition wait.h:34