typo: of -> or

This commit is contained in:
cocoyeal 2024-05-10 17:09:10 +08:00
parent 74edc93864
commit bc10b18a6a

View file

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