We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
@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) }
The text was updated successfully, but these errors were encountered:
it seems that 'queue.Dequeue()' cann't remove the item.
Sorry, something went wrong.
No branches or pull requests
@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)
}
The text was updated successfully, but these errors were encountered: