mirror of
https://github.com/ciphervance/supercell-wx.git
synced 2025-10-30 20:20:06 +00:00
18 lines
264 B
C++
18 lines
264 B
C++
#include <boost/asio/io_context.hpp>
|
|
#include <boost/asio/post.hpp>
|
|
|
|
namespace scwx
|
|
{
|
|
namespace util
|
|
{
|
|
|
|
boost::asio::io_context& io_context();
|
|
|
|
template<class F>
|
|
void async(F&& f)
|
|
{
|
|
boost::asio::post(io_context(), f);
|
|
}
|
|
|
|
} // namespace util
|
|
} // namespace scwx
|