// SPDX-License-Identifier: BSL-1.0 // Copyright 2026, Amlal El Mahrouss (amlal@nekernel.org) // Distributed under the Boost Software License, Version 1.0. (See accompanying // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) // Official repository: https://github.com/ocl-foss-org/core #ifndef OCL_CORE_ASIO #define OCL_CORE_ASIO #ifdef OCL_CORE_INCLUDE_ALL_ASIO #include #else #include #include #include #include #include #include #endif namespace ocl::asio { using io_context_type = boost::asio::io_context; using run_pred_type = void (*)(); template inline void run(io_context_type& ioc) { try { ioc.run(); } catch (...) { IOCPred(); } } } // namespace ocl::asio #endif