event: fix typo (#29749)

typo: of -> or
This commit is contained in:
cocoyeal 2024-05-11 01:44:07 +08:00 committed by GitHub
parent e5f5eaebc4
commit 603fd898d4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -17,7 +17,7 @@
package event
// JoinSubscriptions joins multiple subscriptions to be able to track them as
// one entity and collectively cancel them of consume any errors from them.
// one entity and collectively cancel them or consume any errors from them.
func JoinSubscriptions(subs ...Subscription) Subscription {
return NewSubscription(func(unsubbed <-chan struct{}) error {
// Unsubscribe all subscriptions before returning