/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.
Abhinanda_Shetty
@Abhinanda-Shetty
ZIO
@ZIO