YACLib
C++ library for concurrent tasks execution
Loading...
Searching...
No Matches
contract.hpp File Reference
Include dependency graph for contract.hpp:
This graph shows which files directly or indirectly include this file:

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, Eyaclib::MakeContractOn (IExecutor &e)