ServerLauncher/ServerLauncher.cpp
void print_on_exit(caf::scheduled_actor* self, const std::string& name)
{
	self->attach_functor(
		[=](const caf::error& reason)
	{
		WriteLog(self, name + " exited : " + caf::to_string(reason));
	}
	);
}
// Utility function to print an exit message with custom name
Utility function to print an exit message with custom name
Utility function to print an exit message with custom name
void print_on_exit(caf::scheduled_actor* self, const std::string& name)
{
	self->attach_functor(
		[=](const caf::error& reason)
	{
		WriteLog(self, name + " exited : " + caf::to_string(reason));
	}
	);
}
void print_on_exit ( caf :: scheduled_actor * self , const std :: string & name ) { self -> attach_functor ( [ = ] ( const caf :: error & reason ) { WriteLog ( self , name + " " + caf :: to_string ( reason ) ) ; } ) ; }
Utility function to print an exit message with custom name
Utility function to print an exit message with custom name