Hi Fanning,

   As far as I know, the problem is not conversion of the function. Calling
a deprecated API was the problem.

  Moreover, conversion of the function f => g (where f: A => B, g: A => C
without parameter A) is not possible in scala as far as I know. If it is
possible I would like to improve my knowledge as well

  Here is the PR: https://github.com/sam-byng/incubator-pekko-samples/pull/1


Regards,
Seeta

On Thu, Mar 16, 2023 at 11:36 PM PJ Fanning <[email protected]> wrote:

> Hi everyone,
>
> As part of https://github.com/apache/incubator-pekko-samples/pull/4,
> we've run into an issue where one API returns a
> org.apache.pekko.japi.function.Function<?> but we need to convert it to a
> org.apache.pekko.japi.Function<?>.
>
> Does anyone know how to convert from one type of Function to the other
> type of Function?
>
> The equivalent Akka classes are:
> * https://doc.akka.io/api/akka/current/akka/japi/function/Function.html
> * https://doc.akka.io/api/akka/current/akka/japi/Function.html
>
> Regards,
> PJ
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
>

-- 
Regards,
Seeta Ramayya Vadali

Reply via email to