The EndTicketIssue method

The EndTicketIssue method finishes the issuing of a ticket to a passenger standing in the queue. In the following code, the EndTicketIssue method on Queue sends messageTicketEnd to the message queue. The ticket issue is ended by sending the message:

// EndTicketIssue ends the ticket issue
func (Queue *Queue) EndTicketIssue() {
Queue.message <- messageTicketEnd
}