Skip to content

Peek documentation #1

@EmpireJones

Description

@EmpireJones

Does Peek return the head or tail of the queue? The comment says

// Just attempts to return the tail element of the queue
func (q BlockingQueue) Peek() interface{} {

But typically peek would return the same thing as get/pop I believe; those both say they return the head element.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions