You are viewing a plain text version of this content. The canonical link for it is here.
Posted to devnull@infra.apache.org by "vvcephei (GitHub)" <gi...@apache.org> on 2018/08/22 21:27:43 UTC

[GitHub] [kafka] vvcephei commented on pull request #5539: Fix Streams Scala foreach recursive call

Technically, this is a public interface change, and would require a KIP.

Note that we don't really need the implicit; it just makes the internal implementation nicer. You could instead do:
```scala
def foreach(action: (K, V) => Unit): Unit =
    inner.foreach(new ForeachAction[K, V] {
      override def apply(key: K, value: V): Unit = action(key, value)
    })
```

right?

[ Full content available at: https://github.com/apache/kafka/pull/5539 ]
This message was relayed via gitbox.apache.org for devnull@infra.apache.org