Skip to content
This repository has been archived by the owner on Aug 2, 2024. It is now read-only.

Use Kotlin Coroutines for IO executor #235

Merged
merged 7 commits into from
Nov 28, 2018

Conversation

XinyueZ
Copy link
Contributor

@XinyueZ XinyueZ commented Oct 30, 2018

  1. Remove uncontrollable runOnIoThread(), sorry @tiembo 😸 .
  2. Import coroutines for IO Executor.
  3. Because of coroutines 1.0.0 release, update README.

@XinyueZ XinyueZ force-pushed the feature/coroutines-app-executors branch from 1368825 to e7d6a65 Compare October 30, 2018 21:18
Copy link
Contributor

@tiembo tiembo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @XinyueZ, thanks for your patience and submitting the first coroutines PR! 👍 Added some comments about the ViewModel and why I think we should contain everything in one file for now.

README.md Outdated Show resolved Hide resolved
build.gradle Outdated Show resolved Hide resolved
app/build.gradle Outdated Show resolved Hide resolved
README.md Outdated Show resolved Hide resolved
@XinyueZ
Copy link
Contributor Author

XinyueZ commented Nov 7, 2018

@tiembo I needs more information from your side to complete next change 😕

@XinyueZ XinyueZ force-pushed the feature/coroutines-app-executors branch from 83a04ab to a827fb8 Compare November 9, 2018 09:59
@XinyueZ
Copy link
Contributor Author

XinyueZ commented Nov 16, 2018

@tiembo I have completed the changes-request.

Copy link
Contributor

@tiembo tiembo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for

@XinyueZ XinyueZ force-pushed the feature/coroutines-app-executors branch from 7474aec to 4887e15 Compare November 16, 2018 23:54
@XinyueZ XinyueZ force-pushed the feature/coroutines-app-executors branch from 4887e15 to 9b5309d Compare November 17, 2018 00:01
@XinyueZ
Copy link
Contributor Author

XinyueZ commented Nov 17, 2018

@tiembo I have solved changes request 😀

Copy link

@objcode objcode left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Awesome PR! Nice work.

Author of coroutines codelab here. @tiembo asked me to take a look for coroutines style. Everything is correct as written however I've made some style requests based on our style of starting in the Main dispatcher and guarding functions that do IO using withContext.

I'll take another look for LGTM when that's in!

@XinyueZ
Copy link
Contributor Author

XinyueZ commented Nov 27, 2018

@objcode thx, I will update slightly later.

@XinyueZ
Copy link
Contributor Author

XinyueZ commented Nov 27, 2018

@objcode done

@objcode
Copy link

objcode commented Nov 27, 2018

Coroutine style is +1! Thanks

@XinyueZ XinyueZ force-pushed the feature/coroutines-app-executors branch from 5d1f97f to 076f51c Compare November 28, 2018 07:42
@XinyueZ
Copy link
Contributor Author

XinyueZ commented Nov 28, 2018

@tiembo done, reverted.

@tiembo tiembo merged commit 9c88f7b into android:master Nov 28, 2018
@tiembo
Copy link
Contributor

tiembo commented Nov 28, 2018

Thank you @XinyueZ ! Added this PR to the Notable Community Contributions wiki page 👍

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants