mirror of
				https://github.com/ciphervance/supercell-wx.git
				synced 2025-11-04 00:50:05 +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
 |