event: fix typo (#29749)

typo: of -> or
pull/29757/head
cocoyeal 4 months ago committed by GitHub
parent e5f5eaebc4
commit 603fd898d4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 2
      event/multisub.go

@ -17,7 +17,7 @@
package event package event
// JoinSubscriptions joins multiple subscriptions to be able to track them as // 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 { func JoinSubscriptions(subs ...Subscription) Subscription {
return NewSubscription(func(unsubbed <-chan struct{}) error { return NewSubscription(func(unsubbed <-chan struct{}) error {
// Unsubscribe all subscriptions before returning // Unsubscribe all subscriptions before returning

Loading…
Cancel
Save