Created
May 19, 2020 07:55
-
-
Save DenisBronx/edda2324571a6bb34d14d3debc2499d1 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
interface GetTransactionsUseCase { | |
operator fun invoke(): Single<SimpleResult<List<Transaction>>> | |
} |
Shouldn't the
invoke()
beexecute()
instead ?
Because you referred to it asexecute()
later in your article:
https://medium.com/swlh/functional-use-cases-f896f92e768f
https://gist.github.com/DenisBronx/064d580908a37cb8341204c22e5e8e9d#file-myviewmodel-ktMaybe I just overlooked something, but it seems confusing to me 😃
Yes, thanks! there is a typo
btw great article, thanks! 😃
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Shouldn't the
invoke()
beexecute()
instead ?Because you referred to it as
execute()
later in your article:https://medium.com/swlh/functional-use-cases-f896f92e768f
https://gist.github.com/DenisBronx/064d580908a37cb8341204c22e5e8e9d#file-myviewmodel-kt
Maybe I just overlooked something, but it seems confusing to me 😃