From 1c4a64d2a1e6740bec9af7ea02395091dd6f7893 Mon Sep 17 00:00:00 2001 From: fiatjaf Date: Mon, 2 Oct 2023 09:16:27 -0300 Subject: [PATCH] improve warning on readme. --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index ef81df4..0537965 100644 --- a/README.md +++ b/README.md @@ -141,7 +141,7 @@ func main() { go run example/example.go ``` -## Warning: risk of goroutine bloat +## Warning: risk of goroutine bloat (if used incorrectly) Remember to cancel subscriptions, either by calling `.Unsub()` on them or ensuring their `context.Context` will be canceled at some point. If you don't do that they will keep creating a new goroutine for every new event that arrives and if you have stopped listening on the