I would suggest add this only if there is actual user demand. Writing a function "Function<Foo, Void>" vs "Consumer<Foo>" isn't that much different, but now we have to also to consider "Consumer" interface in java function runtime which will add complexity.
Also if we add the consumer interface, it only makes sense to add one for SDK as well as allow users to submit the raw java.util.Consumer as well [ Full content available at: https://github.com/apache/pulsar/pull/2698 ] This message was relayed via gitbox.apache.org for [email protected]
