Skip to content

Commit 123b146

Browse files
committed
Implement GetChannel(for Selecting channels usages)
1 parent 0616c5b commit 123b146

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

queue.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -643,6 +643,11 @@ func (q *BufferedChannelQueue[T]) GetFreeNodeHookPoolIntervalDuration() time.Dur
643643
return q.freeNodeHookPoolIntervalDuration
644644
}
645645

646+
// GetChannel Get Channel(for Selecting channels usages)
647+
func (q *BufferedChannelQueue[T]) GetChannel() chan T {
648+
return q.blockingQueue
649+
}
650+
646651
// Count Count items
647652
func (q *BufferedChannelQueue[T]) Count() int {
648653
if q.isClosed.Get() {

0 commit comments

Comments
 (0)