YACLib
C++ library for concurrent tasks execution
Loading...
Searching...
No Matches
shared_contract.hpp
Go to the documentation of this file.
1#pragma once
2
5
6namespace yaclib {
7
8template <typename V, typename E>
9using SharedContract = std::pair<SharedFuture<V, E>, SharedPromise<V, E>>;
10
11template <typename V = void, typename E = StopError>
18
19} // namespace yaclib
SharedContract< V, E > MakeSharedContract()
std::pair< SharedFuture< V, E >, SharedPromise< V, E > > SharedContract
Contract< V, E > MakeContract()
Creates related future and promise.
Definition contract.hpp:25