8000 TQueue: provide peekAll · Issue #9467 · zio/zio · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
TQueue: provide peekAll #9467
Closed
Closed
@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

      0