introduced benchmarks on publishing messages
This commit is contained in:
@@ -9,3 +9,8 @@ func Forever[T any](fn func(T)) Subscriber[T] {
|
||||
return true
|
||||
}
|
||||
}
|
||||
|
||||
// NoOp creates a sbscriber that does absolutely nothing forever. This is mostly useful for testing.
|
||||
func NoOp[T any]() Subscriber[T] {
|
||||
return func(_ T) bool { return true }
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user