https://kotlinlang.org logo
a

altavir

05/26/2019, 9:01 AM
Functions are basically non-serializable. You should use SAM classes or method references for that.
h

Hullaballoonatic

05/26/2019, 11:28 PM
a shame indeed
a

altavir

05/27/2019, 5:07 AM
It is not a language problem. It is a basic limitation of any function in any language. Lambdas in Java could be serializable, but it is still not reliable.
3 Views