YACLib
C++ library for concurrent tasks execution
|
#include <yaclib/async/contract.hpp>
#include <yaclib/async/future.hpp>
#include <yaclib/async/promise.hpp>
#include <yaclib/async/run.hpp>
#include <yaclib/exe/executor.hpp>
#include <yaclib/exe/strand.hpp>
#include <yaclib/runtime/fair_thread_pool.hpp>
#include <yaclib/util/intrusive_ptr.hpp>
#include <yaclib/util/result.hpp>
#include <chrono>
#include <exception>
#include <iostream>
#include <string>
#include <type_traits>
#include <utility>
#include <gtest/gtest.h>
Go to the source code of this file.
Classes | |
class | CalculatorService |
Functions | |
TEST (Example, HelloWorld) | |
TEST (Example, Detach) | |
TEST (Example, Then) | |
TEST (Example, Pipeline) | |
TEST (Example, AsyncPipeline) | |
TEST (Example, Race) | |
TEST (Example, StrandAsync) | |
TEST | ( | Example | , |
AsyncPipeline | |||
) |
Definition at line 132 of file simple.cpp.
References CalculatorService::Double(), and CalculatorService::Increment().
TEST | ( | Example | , |
Detach | |||
) |
Definition at line 39 of file simple.cpp.
References yaclib::Run().
TEST | ( | Example | , |
HelloWorld | |||
) |
Definition at line 27 of file simple.cpp.
References yaclib::MakeContract().
TEST | ( | Example | , |
Pipeline | |||
) |
Definition at line 79 of file simple.cpp.
References yaclib::Run().
TEST | ( | Example | , |
Race | |||
) |
Definition at line 156 of file simple.cpp.
References yaclib::MakeContract(), and yaclib::Run().
TEST | ( | Example | , |
StrandAsync | |||
) |
Definition at line 176 of file simple.cpp.
References yaclib::MakeStrand(), and yaclib::Run().
TEST | ( | Example | , |
Then | |||
) |
Definition at line 56 of file simple.cpp.
References yaclib::Run(), yaclib::FutureOn< V, E >::Then(), and yaclib::FutureBase< V, E >::Valid().