{"id":19237558,"url":"https://github.com/fengzhizi715/rxjava-utils","last_synced_at":"2025-04-21T06:31:28.211Z","repository":{"id":73171714,"uuid":"384722280","full_name":"fengzhizi715/RxJava-Utils","owner":"fengzhizi715","description":"在日常开发实践中，本人所积累的 RxJava 相关的工具类","archived":false,"fork":false,"pushed_at":"2023-03-03T03:30:07.000Z","size":92,"stargazers_count":11,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-01T10:41:36.285Z","etag":null,"topics":["rxjava3"],"latest_commit_sha":null,"homepage":"","language":"Kotlin","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/fengzhizi715.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-07-10T14:51:46.000Z","updated_at":"2024-08-12T20:14:36.000Z","dependencies_parsed_at":null,"dependency_job_id":"e915a3b5-3fe0-4766-b876-d52d939d337e","html_url":"https://github.com/fengzhizi715/RxJava-Utils","commit_stats":null,"previous_names":[],"tags_count":12,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fengzhizi715%2FRxJava-Utils","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fengzhizi715%2FRxJava-Utils/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fengzhizi715%2FRxJava-Utils/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fengzhizi715%2FRxJava-Utils/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fengzhizi715","download_url":"https://codeload.github.com/fengzhizi715/RxJava-Utils/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250008195,"owners_count":21359945,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["rxjava3"],"created_at":"2024-11-09T16:27:19.583Z","updated_at":"2025-04-21T06:31:28.201Z","avatar_url":"https://github.com/fengzhizi715.png","language":"Kotlin","funding_links":[],"categories":[],"sub_categories":[],"readme":"# RxJava-Utils\n[![@Tony沈哲 on weibo](https://img.shields.io/badge/weibo-%40Tony%E6%B2%88%E5%93%B2-blue.svg)](http://www.weibo.com/fengzhizi715)\n[![License](https://img.shields.io/badge/license-Apache%202-lightgrey.svg)](https://www.apache.org/licenses/LICENSE-2.0.html)\n[![](https://jitpack.io/v/fengzhizi715/RxJava-Utils.svg)](https://jitpack.io/#fengzhizi715/RxJava-Utils)\n\n在日常开发实践中，本人所积累的 RxJava 相关的工具类，持续更新ing\n\n## 下载\n\n将它添加到项目的 root build.gradle 中：\n\n```groovy\n\tallprojects {\n\t\trepositories {\n\t\t\t...\n\t\t\tmaven { url 'https://jitpack.io' }\n\t\t}\n\t}\n```\n\n然后在项目或者在 module 中添加：\n\n```groovy\nimplementation 'com.github.fengzhizi715.RxJava-Utils:utils:v0.22'\n```\n\n## Feature\n\n1. RetryWithDelay\n\n   RxJava 的重连机制，需要配合 retryWhen 操作符一起使用\n\n\n2. Debounce\n* debounce()\n* debounceIf()\n* debounceAndSubscribe()\n\n3. CountDown\n* countDown() 倒计时函数\n\n4. Delay\n* delay() 延时函数\n\n5. Polling\n* pollingToTakeUntil() 轮询函数，当触发某个条件时轮询结束。下游会不停地收到订阅，需要自行判断\n* pollingWhenItEnd() 轮询函数，当触发某个条件时轮询结束。轮询结束时，下游才开始收到订阅\n* pollingWithLimitedNumber() 轮询函数，当触发某个条件时轮询结束，该函数会限制轮询的次数，达到轮询的次数后便不再进行轮询。\n\n6. AutoRefresh\n* refresh() 自动刷新的函数\n\n7. Extension \n   \n   为 Disposable 提供扩展函数\n* safeDispose() 安全释放 Disposable\n* isDisposed() 判断 Disposable 是否已经 Disposed\n\n8. RxValue、RxValueMutable","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffengzhizi715%2Frxjava-utils","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffengzhizi715%2Frxjava-utils","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffengzhizi715%2Frxjava-utils/lists"}