-
Notifications
You must be signed in to change notification settings - Fork 78
Open
Description
@oleiade when i use Queue's example ,the result is endless loop .
the @code:
var queue *Queue = NewQueue()
// Let's add the incoming clients to the queue
queue.Enqueue("grumpyClient")
queue.Enqueue("happyClient")
queue.Enqueue("ecstaticClient")
fmt.Println(queue.Head) // grumpyClient
// Let's handle the clients asynchronously
for client := queue.Dequeue(); client != nil; {
go fmt.Println(client)
}
Metadata
Metadata
Assignees
Labels
No labels