The current LambdaTransform implementation expects a lambda function that always returns a value that will be subsequently emitted. Most of the time, this is what you'd want, but sometimes you might want to avoid emitting a value if, for example, the output is invalid. For such cases, it would be useful to have an alternative lambda variant that doesn't return anything but allows calling of LambdaTransform::emit() manually.
The current
LambdaTransform
implementation expects a lambda function that always returns a value that will be subsequently emitted. Most of the time, this is what you'd want, but sometimes you might want to avoid emitting a value if, for example, the output is invalid. For such cases, it would be useful to have an alternative lambda variant that doesn't return anything but allows calling ofLambdaTransform::emit()
manually.