2.12 is preliminarily scheduled for early 2016. But if you aren't keen on waiting until then, if you're depending on Java8, you can very easily create static methods that take Java8 Function and BiFunction etc and creates akka.dispatch.Mapper (and friends) and returns them.
But speaking of which, it would also be possible to have factories for the akka.japi Functional Interfaces to akka.dispatch.Mapper etc, so I'd probably recommend doing that. (afaict it's essentially one-liners). On Thu, Jun 19, 2014 at 1:26 PM, Chanan Braunstein < [email protected]> wrote: > Great news! And of course the followup question, do you have an estimate > of when that may happen? :) > > > On Thursday, June 19, 2014 7:25:21 AM UTC-4, √ wrote: > >> This will be solved in Scala 2.12 when Scala FunctionN will be Functional >> Interfaces (i.e. there's no need for akka.dispatch.Mapper any longer). >> >> >> On Thu, Jun 19, 2014 at 1:20 PM, Chanan Braunstein < >> [email protected]> wrote: >> >>> Hello, >>> >>> Right now akka.dispatch.Mapper<T,R> cannot be used as a Java 8 lambda >>> because it is not a functional interface. Any chance that might change in a >>> future version of Akka? >>> >>> Chanan. >>> >>> -- >>> >>>>>>>>>> Read the docs: http://akka.io/docs/ >>> >>>>>>>>>> Check the FAQ: http://doc.akka.io/docs/akka/ >>> current/additional/faq.html >>> >>>>>>>>>> Search the archives: https://groups.google.com/ >>> group/akka-user >>> --- >>> You received this message because you are subscribed to the Google >>> Groups "Akka User List" group. >>> To unsubscribe from this group and stop receiving emails from it, send >>> an email to [email protected]. >>> To post to this group, send email to [email protected]. >>> >>> Visit this group at http://groups.google.com/group/akka-user. >>> For more options, visit https://groups.google.com/d/optout. >>> >> >> >> >> -- >> Cheers, >> √ >> > -- > >>>>>>>>>> Read the docs: http://akka.io/docs/ > >>>>>>>>>> Check the FAQ: > http://doc.akka.io/docs/akka/current/additional/faq.html > >>>>>>>>>> Search the archives: https://groups.google.com/group/akka-user > --- > You received this message because you are subscribed to the Google Groups > "Akka User List" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To post to this group, send email to [email protected]. > Visit this group at http://groups.google.com/group/akka-user. > For more options, visit https://groups.google.com/d/optout. > -- Cheers, √ -- >>>>>>>>>> Read the docs: http://akka.io/docs/ >>>>>>>>>> Check the FAQ: >>>>>>>>>> http://doc.akka.io/docs/akka/current/additional/faq.html >>>>>>>>>> Search the archives: https://groups.google.com/group/akka-user --- You received this message because you are subscribed to the Google Groups "Akka User List" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/akka-user. For more options, visit https://groups.google.com/d/optout.
