Fluid
  • Home
  • Archives
  • Categories
  • Tags
  • About

coroutie-flow5

如何表示多个值 挂起函数可以异步的返回单个值,但是该如何异步的返回多个计算好的值呢? 异步返回多个值的方案 集合 序列。挂起函数。Flow Flow 异步流 56异步返回多个值 集合 序列 挂起函数集合 , 序列 , 挂起函数 ,Flow 1234567891011121314151617181920212223242526 fun simpleList(): List<Int>
2022-03-20
Kotlin
#coroutie

Corouties_context

协程的上下文 P38 协程的上下文 P39 123456@Testfun `test CoroutineContext `() = runBlocking<Unit> { launch (Dispatchers.Default + CoroutineName("test")){ println("you are gr
2022-03-20
Kotlin
#coroutie

battery-research

耗电提醒 耗电问题难点 缺乏现场,无法复现。 用户上传某个截图,你的应用耗电占比 30%。通过电量的详细使用情况,我们可能会有一些猜测。但是用户也无法给出更丰富的信息,以及具体是在什么场景发生的,可以说是毫无头绪。 信息不全,难以定位。 如果是开发人员或者厂商可以提供 bug report,利用 Battery Historian 可以得到非常全的耗电统计信息。但是 Battery His
2022-03-13
#ANDROID

deeplink

deeplink same as arouer, 维护了一个id(一个deeplink)和microApp的映射表,app启动后 读取映射表,id和microapp. 123456789101112private void parseApps(Context context, InputStream is, String routerScheme, String routerDomain) &#
2022-02-25

battery

性能与功耗https://github.com/JsonChao/Awesome-Android-Performance https://developer.android.google.cn/topic/performance battery historyhttps://developer.android.com/topic/performance/power/setup-battery-hi
2022-02-23
#ANDROID

DateTime

2022-01-23
ANDROID

RecyclerView_Divider

RecyclerView 分割线https://juejin.cn/post/6998712972856000543 ItemDecorationonDrawvoid onDraw(Canvas c, RecyclerView parent, State state) 参数的含义: Canvas c 》 canvas 绘制对象 RecyclerView 》 parent RecyclerView
2021-12-19
ANDROID
#RecyclerView

coroutie-start2

runblocking会等待子协程执行完成. https://www.bilibili.com/video/BV1uo4y1y7ZF?p=24&spm_id_from=pageDriver P20 launch asyncLaugh 返回一个Job Async , 返回Deffrred. Async 返回执行结果 12345Job1 finished.Job2 finishedJob
2021-12-14
Kotlin
#coroutie

Font

https://segmentfault.com/a/1190000011299402 https://www.jianshu.com/p/4f9db19d9383 https://github.com/WaterYuanData/Camera2New/tree/SwitchLanguage/testlanguage https://www.jianshu.com/p/7a81e5ef268d h
2021-11-23
ANDROID

coroutine_begin1

协程是什么 03 协程的挂起与恢复 08 挂起阻塞的区别 09 协程的调度器 P13 Dispatchers.Main Dispatchers.IO Dispatchers.Default 任务泄漏 P14 结构化并发 p15使用结构化并发可以做到 CoutineScope P16GlobalScope mainscope协程 可以通过抛出异常取消.
2021-11-08
#coroutie
1…89101112…25

Search

Hexo Fluid