we can read lambda function are serialize by default (https://discuss.kotlinlang.org/t/are-closures-serializable/1620),
but I getting error:
java.lang.RuntimeException: Parcelable encountered IOException writing serializable object (name = com.example.dialogfragment.Arguments)
my class Arguments:
class Arguments(val function: ()-> Unit) : Serializable
What is wrong with my lambda ?
(I got this error when Android need to kill my fragment because low of memory :) )