Skip to content

Commit

Permalink
improve warning on readme.
Browse files Browse the repository at this point in the history
  • Loading branch information
fiatjaf committed Oct 2, 2023
1 parent bc5c0aa commit 1c4a64d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 1c4a64d

Please sign in to comment.