Skip to content

Instantly share code, notes, and snippets.

@DenisBronx
Created May 19, 2020 07:55
Show Gist options
  • Save DenisBronx/edda2324571a6bb34d14d3debc2499d1 to your computer and use it in GitHub Desktop.
Save DenisBronx/edda2324571a6bb34d14d3debc2499d1 to your computer and use it in GitHub Desktop.
interface GetTransactionsUseCase {
operator fun invoke(): Single<SimpleResult<List<Transaction>>>
}
@marazmarci
Copy link

Shouldn't the invoke() be execute() 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 😃

@DenisBronx
Copy link
Author

Shouldn't the invoke() be execute() 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 😃

Yes, thanks! there is a typo

@marazmarci
Copy link

btw great article, thanks! 😃

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment