From c4e2a0f6415d4eb157aac458b4af7a0e86f0ea67 Mon Sep 17 00:00:00 2001 From: "sashakoshka@tebibyte.media" Date: Sun, 26 Jan 2025 00:11:17 -0500 Subject: [PATCH] sync: Made doc comment on Gate.Close make more sense --- sync/gate.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sync/gate.go b/sync/gate.go index 1ad6fd3..f5f9fd5 100644 --- a/sync/gate.go +++ b/sync/gate.go @@ -51,7 +51,7 @@ func (this *Gate[T]) Receive () <- chan T { return this.load() } -// Close closes the gate, drains all remaining messages, and closes the channel. +// Close closes the gate, unblocking any send or receive operations. func (this *Gate[T]) Close () error { channel := this.channel.Swap((chan T)(nil)).(chan T) if channel == nil { return ErrAlreadyClosed }