fixed documentation formatting
This commit is contained in:
@@ -2,8 +2,7 @@ package gubgub
|
|||||||
|
|
||||||
// sequentialDelivery effentiently delivers a message to each subscriber sequentially. For
|
// sequentialDelivery effentiently delivers a message to each subscriber sequentially. For
|
||||||
// performance reasons this might mutate the subscribers slice inplace. Please overwrite it with
|
// performance reasons this might mutate the subscribers slice inplace. Please overwrite it with
|
||||||
// the result of this
|
// the result of this call.
|
||||||
// call.
|
|
||||||
func sequentialDelivery[T any](msg T, subscribers []Subscriber[T]) []Subscriber[T] {
|
func sequentialDelivery[T any](msg T, subscribers []Subscriber[T]) []Subscriber[T] {
|
||||||
last := len(subscribers) - 1
|
last := len(subscribers) - 1
|
||||||
next := 0
|
next := 0
|
||||||
|
|||||||
Reference in New Issue
Block a user