Nuru Nabiyev
11/15/2022, 2:01 PMStephan Schroeder
11/15/2022, 2:10 PM::onEntityReady
returns the method, but doesn't invoke it. it works for onError = ::postErrorEvent
because there it takes the place of the lambda. Once you put it inside curly braces (a lambda funtion), you have to actually invoke it, in this case onError = {postErrorEvent(it)}
(with it
being the default name of the single parameter expected by the function assigned to onError)
more here: https://kotlinlang.org/docs/lambdas.html#instantiating-a-function-typeNuru Nabiyev
11/15/2022, 2:16 PMSidney Beekhoven
11/17/2022, 12:43 PM::onEntityReady
?