// PopEvent returns the last event in the queue.
PopEvent returns the last event in the queue.
// PopEvent returns the last event in the queue .
func (event_dispatcher *EventDispatcher_struct) PopEvent() ( return_report error_report.ErrorReport_struct ){
	var event Event_struct;
	event_dispatcher.mutex.Lock();
	event = event_dispatcher.events_slice[(len(event_dispatcher.events_slice) - 1)];
	event_dispatcher.events_slice = event_dispatcher.events_slice[:(len(event_dispatcher.events_slice) - 1)];
	event_dispatcher.mutex.Unlock();
	return_report = error_report.New( 0, map[string]interface{}{ "event": event }, nil );
	return return_report;
}
func ( event_dispatcher * EventDispatcher_struct ) PopEvent ( ) ( return_report error_report . ErrorReport_struct ) { var event Event_struct ; event_dispatcher . mutex . Lock ( ) ; event = event_dispatcher . events_slice [ ( len ( event_dispatcher . events_slice ) - 1 ) ] ; event_dispatcher . events_slice = event_dispatcher . events_slice [ : ( len ( event_dispatcher . events_slice ) - 1 ) ] ; event_dispatcher . mutex . Unlock ( ) ; return_report = error_report . New ( 0 , map [ string ] interface { } { " " : event } , nil ) ; return return_report ; }
PopEvent returns the last event in the queue.
PopEvent returns the last event in the queue .
//Variables //Parametres //Function //Return