konmik / nucleus

Nucleus is an Android library, which utilizes the Model-View-Presenter pattern to properly connect background tasks with visual parts of an application.
MIT License
1.97k stars 253 forks source link

Deliver methods #118

Closed m-o closed 8 years ago

m-o commented 8 years ago

Hi, can you write more about deliverXXX methods, how to use them on their own and when to use/not use restartable? I think i have a usecase when I really do not need restartable. I am changing password on the server, so I just want to call "changePassword" and get view and response as with restartable. Or is my thinking wrong and I should always use restartable? Thanks

konmik commented 8 years ago

hi, I would use restartable in this case. What if the app will be disposed from memory during the request? Restartable will restart the request and you will get a response or "wrong password" from your server. If you will not use restartable, the request will be lost and View will never get an answer.