From cefe07c9f9d9135e93f4050ca882afb5f2e03a17 Mon Sep 17 00:00:00 2001 From: Georg Reinke Date: Thu, 6 Jan 2022 18:42:26 +0100 Subject: [PATCH] doc: clarify Signal channel behavior Fixes #271. --- conn.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/conn.go b/conn.go index c50bfe3..1a92b8b 100644 --- a/conn.go +++ b/conn.go @@ -650,7 +650,9 @@ func (conn *Conn) RemoveMatchSignalContext(ctx context.Context, options ...Match // Signal registers the given channel to be passed all received signal messages. // -// Multiple of these channels can be registered at the same time. +// Multiple of these channels can be registered at the same time. The channel is +// closed if the Conn is closed; it should not be closed by the caller before +// RemoveSignal was called on it. // // These channels are "overwritten" by Eavesdrop; i.e., if there currently is a // channel for eavesdropped messages, this channel receives all signals, and