ifw-daq  3.0.0-pre2
IFW Data Acquisition modules
Functions
daq::test Namespace Reference

Functions

template<class Predicate >
void MakeTestProgressUntil (boost::asio::io_context &io_ctx, Predicate &&pred, std::chrono::milliseconds timeout=std::chrono::seconds(3))
 Executes io_ctx::poll until pred returns true or it times out. More...
 
template<class Future = void>
void MakeTestProgress (boost::asio::io_context &io_ctx, Future *fut=nullptr)
 Test helper that progress the test by executing pending jobs and optionally wait for a future to be ready. More...
 

Function Documentation

◆ MakeTestProgressUntil()

template<class Predicate >
void daq::test::MakeTestProgressUntil ( boost::asio::io_context &  io_ctx,
Predicate &&  pred,
std::chrono::milliseconds  timeout = std::chrono::seconds(3) 
)

Executes io_ctx::poll until pred returns true or it times out.

Definition at line 26 of file progress.hpp.