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
314 Views Asked by abhishek maharajpet At
1
There are 1 best solutions below
Related Questions in ANDROID
- Delay in loading Html Page(WebView) from assets folder in real android device
- MPAndroidChart method setWordWrapEnabled() not found
- Designing a 'new post' android activity
- Android :EditText inside ListView always update first item in the listview
- Android: Transferring Data via ContentIntent
- Wrong xml being inflated android
- AsyncTask Class
- Unable to receive extras in Android Intent
- Website zoomed out on Android default browser
- Square FloatingActionButton with Android Design Library
- Google Maps API Re-size
- Push toolbar content below statusbar
- Android FragmentPagerAdapter Circular listview
- Layout not shifting up when keyboard is open
- auDIO_OUTPUT_FLAG_FAST denied by client can't connect to localhost
Related Questions in ANDROID-FRAGMENTS
- Android - No view found for fragment
- Fragment AsyncTask not executing after back button pressed
- I want to Show Simple Toast Message When User Click On Media Controller button Pause/Start/Stop in video View Using Media Controller
- Call special fragment in Navigation Drawer Activity from separate Activity
- Android FragmentViewPager in Fragment
- How to restrict fragment from adding to top of stack if it already exist in the top of stack in android
- Android Studio - Illegal character 8204 error
- Adapter ListView not refreshing from Activity
- Fragment's Transaction replace on API-21 is staying behind
- Integrating Localytics - FragmentActivity
- Null pointer exception on view pager swipe
- Error:(24, 51) error: incompatible types: FragmentAcitvity cannot be converted to Fragment
- How to get menu options in actionbar aligned with fragments?
- Using Edittext in Fragment Activities outside the onCreateView method
- Clicking CardView to load a fragment
Related Questions in RX-JAVA2
- Observable timeout logic: migration to RxJava2
- Requerying and updating subscribers with RxJava2
- RxJava2: Unable to handle exception for asynchronous callback using retryWhen
- RxJava2 with JUnit: no exceptions thrown in tests
- RxJava2 JUnit testing
- How to create RxJava Observable that emits continuously?
- Using RxJava 2 and Retrofit 2, adapter version issue
- Retrofit2 + RxJava2 + RxAndroid error
- RxJava: OnNext Unsubscribe is not working
- Handling Network Error in Rxjava 2 - Retrofit 2
- Rxjava + Retrofit get FATAL Exception: RxCachedThreadScheduler
- RxJava emit error on empty
- RxJava (Android) - Is there any harm in keeping a Scheduler alive?
- Disposeable for Observer
- flatMapCompletable does not call the given Action
Related Questions in RX-ANDROID
- Conditional object creation within a stream in RxAndroid
- Retrofit + RxAndroid: slow request block others requests
- Getting the index of an element from an Observable
- Buffer events, start new group 1 second after the last event from previous group
- RxJava retry based on logic
- How to write a test for a function that uses AndroidSchedulers.mainThread(); from RxAndroid
- WebSocket and Rx Java
- Using observeOn() the Android UI thread crashes my emulator testing
- RxJava Observable
- Put in / remove from the basket using Rx
- Error with retrofit 2 : java.lang.NoSuchMethodError: com.google.gson.Gson.newJsonReader, after updating gradle
- unit test a service based on BroadcastReceiver getting list of wifi's SSID and returning Rx.Observable
- Notifying of error events down the chain without use of traditional listener
- Observable.timer saving state
- MVP and RxJava - Handling Orientation Changes on Android
Related Questions in FIRE-AND-FORGET
- Considerations for not awaiting a Task in an asynchronous method
- PHP exec(), can I fire and forget?
- How to fire-and-forget in WCF when using wsHttpBinding
- Fire and forget with java.util.concurrent
- Return additional custom data with Azure Logic App async 202 response
- Python: True fire-and-forget POST request without waiting for response even in separate thread
- StackExchange.Redis Async with Fire and Forget not setting the keys
- How to invoke a delegate call as Fire-And-Forget
- Fire and Forget database-related method in Hosted Service
- Resolving Autofac components in background Tasks in ASP.NET
- Managing child worker threads list
- ERROR:root:Error in xyz There is no current event loop in thread 'Thread-7'
- Asyncio "fire and forget" tasks in a separate thread
- Await and fire-and-forget in .NET Core
- Rxjava disposable with Fire and Forget API call
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 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.