RxPS - RxJavaPriorityScheduler - A RxJava Priority Scheduler library for Android and Java applications
- RxPS is used to set the priority for the given task.
- Simple way to set the priority for the given task.
Outcome School Blog - High-quality content to learn Android concepts.
Add this in your build.gradle
implementation 'com.mindorks.scheduler:rxps:0.1.0'
getObservable()
.subscribeOn(RxPS.low())
.subscribe(getObserver());
// or
getObservable()
.subscribeOn(RxPS.get(Priority.LOW))
.subscribe(getObserver());
getObservable()
.subscribeOn(RxPS.medium())
.subscribe(getObserver());
// or
getObservable()
.subscribeOn(RxPS.get(Priority.MEDIUM))
.subscribe(getObserver());
getObservable()
.subscribeOn(RxPS.high())
.subscribe(getObserver());
// or
getObservable()
.subscribeOn(RxPS.get(Priority.HIGH))
.subscribe(getObserver());
getObservable()
.subscribeOn(RxPS.immediate())
.subscribe(getObserver());
// or
getObservable()
.subscribeOn(RxPS.get(Priority.IMMEDIATE))
.subscribe(getObserver());
- Documentation
- Test Cases
- Customizations
You can connect with me on:
Copyright (C) 2022 Amit Shekhar
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
All pull requests are welcome, make sure to follow the contribution guidelines when you submit pull request.