https://kotlinlang.org logo
d

dmitriy.m

12/15/2016, 1:23 PM
hi guys, please help me with
inline
functions a bit
Copy code
inline fun <reified T> forView(view: OperationView): ActionStateSubscriber<T> {
        return with(ActionStateSubscriber<T>()) {
            onStart { action ->
                view.showProgress()
                onStartFunc?.let { it(action) }
            }
onStartFunc
- is closure, so i don't have access to it inside the inline method. How i can do it?