Android代码-一个轻量级的处理耗时任务的Android库。

时间:2022-08-26 00:06:58
【文件属性】:

文件名称:Android代码-一个轻量级的处理耗时任务的Android库。

文件大小:141KB

文件格式:ZIP

更新时间:2022-08-26 00:06:58

Android代码

peanut A minimal Android library to handle heavy works in worker threads easily. How to use? It's really easy to use. Create your peanut. val peanut = object : Peanut() { override fun call() { var count = 0 for (i in 0 until 100000) { count = count } onSuccess(count.toString()) } } and Schedule it peanut.runOn(Schedulers.io()) .receiveOn(Schedulers.main())


【文件预览】:
peanut-master
----gradlew.bat(2KB)
----gradlew(5KB)
----gradle.properties(730B)
----peanut()
--------proguard-rules.pro(751B)
--------src()
--------.gitignore(13B)
--------build.gradle(808B)
----app()
--------proguard-rules.pro(751B)
--------src()
--------.gitignore(11B)
--------build.gradle(1KB)
----gradle()
--------wrapper()
----.gitignore(124B)
----README.md(1KB)
----settings.gradle(26B)
----build.gradle(644B)

网友评论