Thanks to visit codestin.com
Credit goes to github.com

Skip to content

TQueue: provide peekAll #9467

@domdorn

Description

@domdorn

I'm missing a peekAll on TQueue.
Background: I have a queue and I want to implement a debugging endpoint in my app where I can inspect the queue.
Currently I have to resort to this workaround/hack:

(for {
    allItems <- skippedItemsQueue.takeAll
    _ <- skippedItemsQueue.offerAll(allItems)
  } yield allItems).commit

because there is only a peek and a peekOption.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions