void RunLoop::set_log_handler( const function< error_code ( const string&, const error_code&, const string& ) >& value )
{
suspend( ); //document me on api, this is bad unless suspend waits fro all takes to sleep.
m_pimpl->log_handler = value;
resume( );
}
void RunLoop::set_error_handler( const function< error_code ( const string&, const error_code&, const string& ) >& value )
{
suspend( ); //doc me, this is bad unless suspend waits fro all takes to sleep.
m_pimpl->error_handler = value;
resume( );
}