YACLib
C++ library for concurrent tasks execution
|
#include <yaclib/async/future.hpp>
#include <yaclib/async/promise.hpp>
#include <yaclib/exe/executor.hpp>
Go to the source code of this file.
Namespaces | |
namespace | yaclib |
Typedefs | |
template<typename V , typename E > | |
using | yaclib::Contract = std::pair< Future< V, E >, Promise< V, E > > |
Describes channel with future and promise. | |
template<typename V , typename E > | |
using | yaclib::ContractOn = std::pair< FutureOn< V, E >, Promise< V, E > > |
Functions | |
template<typename V = void, typename E = StopError> | |
Contract< V, E > | yaclib::MakeContract () |
Creates related future and promise. | |
template<typename V = void, typename E = StopError> | |
ContractOn< V, E > | yaclib::MakeContractOn (IExecutor &e) |