improve warning on readme.

This commit is contained in:
fiatjaf 2023-10-02 09:16:27 -03:00
parent bc5c0aa4a1
commit 1c4a64d2a1
No known key found for this signature in database
GPG Key ID: BAD43C4BE5C1A3A1

View File

@ -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