- Learn Data Structures and Algorithms with Golang
- Bhagvan Kommadi
- 59字
- 2021-06-24 15:37:51
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
}