Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
Coroutines 1.6移行記録 / Tried to migrate Coroutine...
Search
Masatoshi Kubode
February 22, 2022
Programming
1
510
Coroutines 1.6移行記録 / Tried to migrate Coroutines to 1.6
Masatoshi Kubode
February 22, 2022
Tweet
Share
More Decks by Masatoshi Kubode
See All by Masatoshi Kubode
Google Play Consoleデベロッパー アカウントの確認 / Verifying your Play Console developer account
kubode
0
880
Make your Android app into Multiplatform app
kubode
0
81
ウォンテッドリーにおけるモバイルアプリ開発 / iOSDC Japan 2024 Sponsor Session
kubode
1
680
Jetpack ComposeのBottomSheetとの戦い / Fight with BottomSheet of Jetpack Compose
kubode
0
420
Mobile Chapterが目指すところと技術 / Vision and Technology of Mobile Chapter at Wantedly
kubode
0
290
ウォンテッドリーでのKMPワークフロー / KMP workflow at Wantedly
kubode
0
1.6k
ComposeでのShared Element Transition / Shared Element Transition in Compose
kubode
0
450
K2への完全移行結果 / Results of complete migration to K2
kubode
2
6k
Data Bindingの移行を楽にする / Easier migration of Data Binding
kubode
0
1.6k
Other Decks in Programming
See All in Programming
Refactor your code - refactor yourself
xosofox
1
260
StarlingMonkeyを触ってみた話 - 2024冬
syumai
3
270
Spatial Rendering for Apple Vision Pro
warrenm
0
100
Effective Signals in Angular 19+: Rules and Helpers
manfredsteyer
PRO
0
100
バグを見つけた?それAppleに直してもらおう!
uetyo
0
180
MCP with Cloudflare Workers
yusukebe
2
220
「とりあえず動く」コードはよい、「読みやすい」コードはもっとよい / Code that 'just works' is good, but code that is 'readable' is even better.
mkmk884
3
290
テストコード文化を0から作り、変化し続けた組織
kazatohiei
2
1.5k
fs2-io を試してたらバグを見つけて直した話
chencmd
0
230
Mermaid x AST x 生成AI = コードとドキュメントの完全同期への道
shibuyamizuho
0
160
テストケースの名前はどうつけるべきか?
orgachem
PRO
0
130
HTTP compression in PHP and Symfony apps
dunglas
2
1.7k
Featured
See All Featured
Fontdeck: Realign not Redesign
paulrobertlloyd
82
5.3k
Documentation Writing (for coders)
carmenintech
66
4.5k
Visualizing Your Data: Incorporating Mongo into Loggly Infrastructure
mongodb
44
9.3k
Agile that works and the tools we love
rasmusluckow
328
21k
CSS Pre-Processors: Stylus, Less & Sass
bermonpainter
356
29k
The Language of Interfaces
destraynor
154
24k
Art, The Web, and Tiny UX
lynnandtonic
298
20k
How to train your dragon (web standard)
notwaldorf
88
5.7k
Sharpening the Axe: The Primacy of Toolmaking
bcantrill
38
1.9k
Mobile First: as difficult as doing things right
swwweet
222
9k
Six Lessons from altMBA
skipperchong
27
3.5k
Learning to Love Humans: Emotional Interface Design
aarron
273
40k
Transcript
©2022 Wantedly, Inc. Coroutines 1.6 Ҡߦه ϞόΠϧษڧձ Wantedly × νʔϜϥϘ
2022/2/22 ٱอग़խढ़ Photo by Andrii Ganzevych on Unsplash
©2022 Wantedly, Inc. XXXXBOUFEMZDPNJELVCPEF
©2022 Wantedly, Inc. $PSPVUJOFTͷมߋ "OESPJEͰҠߦͨ͠ ,..ͰҠߦ͠Α͏ͱ͕ͨ͠Ͱ͖ͳ͔ͬͨ
·ͱΊ ͢͜ͱ
©2022 Wantedly, Inc. $PSPVUJOFTͷมߋ
©2022 Wantedly, Inc. w LPUMJOYDPSPVUJOFTUFTUSFXPSL w .VMUJQMBUGPSNରԠ w ৽͍͠"1*ͷՃͱݹ͍"1*ͷ%FQSFDBUJPO w
,PUMJO/BUJWFOFXNFNPSZNPEFMJTOPX TVQQPSUFE $PSPVUJOFTͷมߋ https://github.com/Kotlin/kotlinx.coroutines/releases/tag/1.6.0
©2022 Wantedly, Inc. LPUMJOYDPSPVUJOFTUFTU
©2022 Wantedly, Inc. w $PSPVUJOFTΛςετ͘͢͢͠ΔϥΠϒϥϦ w %JTQBUDIFSTTFU.BJOSFTFU.BJO w 5FTU%JTQBUDIFS DPSPVUJOFTUFTU
©2022 Wantedly, Inc. %JTQBUDIFSTTFU.BJOSFTFU.BJO
©2022 Wantedly, Inc. %JTQBUDIFSTTFU.BJOSFTFU.BJO ϢχοτςετͰϞοΫ͕ඞཁʂ
©2022 Wantedly, Inc. %JTQBUDIFSTTFU.BJOSFTFU.BJO Dispatchers.MainΛஔ͖͑Δ
©2022 Wantedly, Inc. %JTQBUDIFSTTFU.BJOSFTFU.BJO Dispatchers.Main͕StandardTestDispatcherʹͳΔ
©2022 Wantedly, Inc. %JTQBUDIFSTTFU.BJOSFTFU.BJO σϑΥϧτʹΔ
©2022 Wantedly, Inc. 5FTU%JTQBUDIFS
©2022 Wantedly, Inc. 5FTU%JTQBUDIFS ͦͷ··ͩͱςετͷ࣮ߦʹ1ඵ͔͔Δ
©2022 Wantedly, Inc. 5FTU%JTQBUDIFS ςετͷ࣮ߦଈऴΘΔ
©2022 Wantedly, Inc. "OESPJEͰͷҠߦ
©2022 Wantedly, Inc. جຊతʹҠߦΨΠυ௨Γ "OESPJEͰͷҠߦ https://github.com/Kotlin/kotlinx.coroutines/blob/1.6.0/kotlinx-coroutines-test/MIGRATION.md $PSPVUJOFT $PSPVUJOFT SVO#MPDLJOH5FTU SVO5FTU
5FTU$PSPVUJOF%JTQBUDIFS 6ODPO fi OFE5FTU%JTQBUDIFS 4UBOEBSE5FTU%JTQBUDIFS
©2022 Wantedly, Inc. 5FTU%JTQBUDIFS
©2022 Wantedly, Inc. ,..ͰͷҠߦ
©2022 Wantedly, Inc. w ͭͷେ͖ͳ͕ى͖ͨ w ,UPSͱͷΈ߹Θͤ w *MMFHBM4UBUF&YDFQUJPO%JTQBUDIFST.BJOJT VTFEDPODVSSFOUMZXJUITFUUJOHJU
,..ͰͷҠߦ
©2022 Wantedly, Inc. w ,PUMJO/BUJWF্Ͱ,UPSY $PSPVUJOFT Ͱ*OWBMJE.VUBCJMJUZ&YDFQUJPO͕ى͖Δ w ,UPSͷϦϦʔεΛͭඞཁ⏱ ,UPSͷ
https://youtrack.jetbrains.com/issue/KTOR-3463
©2022 Wantedly, Inc. w .VMUJQMBUGPSNରԠͨ͜͠ͱͰՃ͞Εͨྫ֎ w %JTQBUDIFSTTFU.BJOSFTFU.BJOݺͼग़͠ͱ %JTQBUDIFST.BJOͷΞΫηε͕ผεϨουͰ ಉ࣌ʹى͖Δͱൃੜ %JTQBUDIFST.BJOJTVTFEDPODVSSFOUMZXJUITFUUJOHJU
©2022 Wantedly, Inc. %JTQBUDIFST.BJOJTVTFEDPODVSSFOUMZXJUITFUUJOHJU
©2022 Wantedly, Inc. %JTQBUDIFST.BJOJTVTFEDPODVSSFOUMZXJUITFUUJOHJU ViewModelͷςετΛ͢Δ
©2022 Wantedly, Inc. %JTQBUDIFST.BJOJTVTFEDPODVSSFOUMZXJUITFUUJOHJU ςετͷBefore/AfterͰsetMain/resetMain
©2022 Wantedly, Inc. %JTQBUDIFST.BJOJTVTFEDPODVSSFOUMZXJUITFUUJOHJU Dispatchers.MainΛͬͯΔ
©2022 Wantedly, Inc. %JTQBUDIFST.BJOJTVTFEDPODVSSFOUMZXJUITFUUJOHJU Dispatchers.Main = ςετεϨουͱผεϨου Ͱ࣮ߦ͞ΕΔ
©2022 Wantedly, Inc. %JTQBUDIFST.BJOJTVTFEDPODVSSFOUMZXJUITFUUJOHJU Dispatchers.MainͰ࣮ߦ͞ΕΔ ·Εʹྫ֎͕ى͖Δ
©2022 Wantedly, Inc. w ͯ͢ͷίϧʔνϯ͕ফඅ͞ΕΔ͜ͱΛ֬ೝ͢Δ w ςετ͝ͱʹDBODFM͢Δ w 5FTU%JTQBUDIFSҎ֎Θͳ͍ w
ཁ%* ͙ʹ
©2022 Wantedly, Inc. ·ͱΊ
©2022 Wantedly, Inc. w ओʹDPSPVUJOFTUFTUͷมߋʹ͍ͭͯ৮Εͨ w جຊతʹΨΠυ௨Γ w ᠘͋Δ w
,UPSͷϦϦʔεΛͭඞཁ ·ͱΊ
ϖʔδλΠτϧ ϖʔδαϒλΠτϧ ©2022 Wantedly, Inc. 🙇