A Fire and Forget API call is made and its disposable is added to compositeDisposable. We are not handling any results. We just need to update the server on an action. After the call is made and in OnDestroy of the fragment, we are disposing the composite disposable. Will the API call be a success or failure (on the server-side) if it was disposed before the call was completed (received in subscribe method) on the app side?
Rxjava disposable with Fire and Forget API call
315 Views Asked by abhishek maharajpet At
1
There are 1 best solutions below
Related Questions in ANDROID
- Creating global Class holder
- Flutter + Dart: Editing name of a tab shows up a black screen
- android-pdf-viewer Received status code 401 from server: Unauthorized
- Sdk 34 WRITE_EXTERNAL_STORAGE not working
- ussd reader in Recket Native module
- Incorrect display of LinearGradientBrush in IOS
- The Binary Version Of its metadata is 1.8.0, expected Version is 1.6.0 build error
- I can't make TextInput to auto expand properly in Android
- Creating multiple instances of a class with different initializing values in Flutter
- How to create a lottie animation
- making android analyze with coverity sast tool
- Flutter plugin development android src not opening after opening example
- I initialize my ViewModel in the Activity with several fragments as tabs, but the fragments(tabs) return null for the updated livedata
- Node.js Server + Socket.IO + Android Mobile Applicatoin XHR Polling Error...?
- How I can use the shared preferences class?
Related Questions in ANDROID-FRAGMENTS
- Gray view with a white horizontal bar appearing after Google signin from my Android app
- why doesn't it switch to another fragment?
- React Native Android, why is fragment not visible after a certain offset?
- Is it possible to navigate from one navgraph to a different one on a different starting fragment? (Nested Navgraph)
- Open full screen fragment from smaller fragment
- Attempt to invoke virtual method 'android.content.Context androidx.fragment.app.FragmentHostCallback.getContext()' on a null object reference
- Retain last opened Fragment after opening push notification
- How do I solve the in fragment problem in android studio
- Option menu does not appear in the toolbar after being collapsed inside a fragment
- How can I force or ensure that a Fragment gets recreated by FragmentStateAdapter?
- OnSwipe in MotionLayout scene transition
- Is it a good idea to use SharedViewModel (with Flow inside it) between a ForegroundService and a UI Component (Fragment/ Composables)
- Kotlin Stateflow new value emitted but not collected
- Android Studio (java) - Item of recyclerView of fragment can't be removed permanently
- I have an error about switching between fragments
Related Questions in RX-JAVA2
- RxJava PublishSubject buffer elements with timeout
- adjust delay value in rx java from source
- Does the Observable.take(1) function dispose itself after taking 1?
- retryWhen hanging after migrating from rxjava to rxjava2
- How to update the first observable with the data of the second dependent on the first
- Reduce response time
- RxJava2 onNext can't execute after FlowableEmitter.onNext executed many times
- Android: NPE: Observable.takeLast
- Combine 2 data sources in RxJava with possibility to fetch new data from 1 of the observables
- Observable.fromCallable() method inside not getting called
- Does CompositeDisposable.dispose() Interrupt Tasks.await() in an Rx Subscription?
- Expected begin_array but was begin_object at line 1 column 2 path $ on Kotlin+Android
- Kotlin generics error when changing T to nullable
- Kotlin coroutines onErrorReturn (RX Java counterpart)
- How to zip for Maybe when one of it is empty
Related Questions in RX-ANDROID
- How to cleanup an Observable.take(1) properly?
- Android : RXJava - How to combine multiple observable and get the corresponding results without merging or without getting duplicates
- Which is the better way to run a long running impersistance task in a multi module android project?
- Transform Callback into Observable with data from other Observable
- RxJava RxAndroid repeat API call with different request body in Android
- Multiple chained API calls to fetch data, but doOnNext of PublishSubject is never reached
- RxAndroidBle waiting for response from peripheral when write on it (not long write) in Kotlin
- How to wait for completion of multiple Observables in RXJava?
- Android - RxJava - Race condition
- RxAndroid: Fetch data from multiple apis
- Switch back to original thread after executing element of a chain
- How to use RxJava / RxAndroid in Android to make slow network call and update the UI?
- How to create a stopwatch with Rx counting down to 0?
- How do I wait for a void function to finish executing before triggering a completable in Android?
- How to signal an infinite observable to stop/continue emission?
Related Questions in FIRE-AND-FORGET
- Launching fire and forget job via kotlin coroutines in Webflux application
- StackExchange.Redis Async with Fire and Forget not setting the keys
- Python: True fire-and-forget POST request without waiting for response even in separate thread
- Return additional custom data with Azure Logic App async 202 response
- Issue about calling an async method without awaiting in ASP.NET Core
- Spring Webclient Flux fire and forget while keeping the flux
- Make hangfire fire-and-forget job queue only work in given time period
- Making fire-and-forget calls in a thread-safe manner in C#
- Fire-and-forget in .Net Core Web API - approaches and observations
- Function inside Task.Run doesn't get executed
- Fire and Forget database-related method in Hosted Service
- Asp .Net Core WebApi : 2nd http call on exception
- When using discard (_) to an async task the try catch does not catch the inner exception of the called method
- What does UDP mean to Fire and forget pattern technique?
- Execute something which takes 5 seconds (like email send) but return with response immediately?
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular # Hahtags
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
In short, Yes, The API call will be completed if it is taking a very short time.
If the API is giving you a larger data set then the stream will be interrupted which in turn cancels the network call.
Hope you are using the
CompletableObservable.