You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is not friendly with Kotlin where if the last parameter of a function accepts a function, a lambda expression that is passed as the corresponding argument can be placed outside the parentheses.
So, now in Kotlin we need to write:
Now all of the
execute
methods haverequestModel
the last parameter:execute(onNext)
execute(onNext, requestModel)
execute(onNext, onError)
execute(onNext, onError, requestModel)
execute(onNext, onError, onComplete)
execute(onNext, onError, onComplete, requestModel)
This is not friendly with Kotlin where if the last parameter of a function accepts a function, a lambda expression that is passed as the corresponding argument can be placed outside the parentheses.
So, now in Kotlin we need to write:
instead of:
At the same time, the current order causes issues with correct type inference.
I think, it's reasonable to make
responseModel
the first parameter.The text was updated successfully, but these errors were encountered: