/claim #9844

  • add an E type parameter to Queue

  • add a shutdownCause method that takes a type parameter of type Cause[E]

  • shutdownCause would also return the items currently buffered in the queue in order to dispose of them

  • after shutdownCause has been called, any attempt to interact with the queue will fail with the cause

  • methods like take, offer etc. should indicate errors of type E

  • streams created with ZStream.fromQueue would also fail with this cause

  • shutdownCause should be atomic: when multiple fibers call it at the same time, one of them wins and the others fail with the cause supplied by the winner.

Claim

Total prize pool $100
Total paid $0
Status Pending
Submitted July 12, 2025
Last updated July 12, 2025

Contributors

AB

Abhinanda_Shetty

@Abhinanda-Shetty

100%

Sponsors

ZI

ZIO

@ZIO

$100