@ -30,3 +30,11 @@ func FindLast[T any](source <-chan T) *T {
return last
}
func HasAny[T any](source <-chan T) bool {
return FindFirst(source) != nil
func HasAnyAndFlush[T any](source <-chan T) bool {
return FindFirstAndFlush(source) != nil
The note is not visible to the blocked user.