nextcloud-deck icon indicating copy to clipboard operation
nextcloud-deck copied to clipboard

Expose Disposable responses from network tasks

Open stefan-niedermann opened this issue 3 years ago • 0 comments

No practical benefit yet.

The idea is to get more control over the background tasks in the long term (maybe the ability to cancel a running sync?) instead of just shooting into the dark like "fire and forget". (That's why i also used ExecutorService where possible, to avoid starting threads without control over it)

Drawbacks: Deep dependency to RxJava2 all over the app - not sure whether it's worth it.

ToDo:

  • Catch new CancellationException and handle it on the UI (probably by just doing nothing)

stefan-niedermann avatar May 25 '21 09:05 stefan-niedermann