Skip to content
This repository has been archived by the owner on Apr 1, 2020. It is now read-only.

org.jooby.funzy.Throwing.Consumer2<V1, V2> does not extend java.util.function.BiConsumer<T, U> #3

Open
imeszaros opened this issue Apr 16, 2019 · 0 comments

Comments

@imeszaros
Copy link
Member

imeszaros commented Apr 16, 2019

Therefore the return value of org.jooby.funzy.Throwing.throwingConsumer(Consumer2<V1, V2>) cannot be used as BiConsumer.

Is this intentional?

org.jooby.funzy.Throwing.Function2<V1, V2, R> does extend java.util.function.BiFunction<V1, V2, R>.

Workaround is to use Throwing.throwingConsumer(...)::accept.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant