31 using io_context_type = boost::asio::io_context;
33 using run_pred_type = void (*)();
35 template <
class IOCPred>
36 inline void run(io_context_type& ioc)
42 catch (
const std::exception& e)
45 ocl::io::println(e.what());
49 template <run_pred_type IOCFn>
50 inline void run(io_context_type& ioc)
56 catch (
const std::exception& e)
59 ocl::io::println(e.what());