I suspect it’s just Java’s type inference not being quite smart enough. Try
.map(p -> (Callable<SomeClass>) () -> p.funct())
I suspect it’s just Java’s type inference not being quite smart enough. Try
.map(p -> (Callable<SomeClass>) () -> p.funct())