New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add coroutines support - Part II #54
base: add_coroutines_support_epic
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hey @wching
I have a question here...
do we really need to add coroutines here? We could just have a flow that doesn't depend on anything and it is pure kotlin and sync. What do you think?
import java.util.Calendar | ||
|
||
open class OAuth2AccessTokenManager( | ||
private val mOAuth2AccessTokenStorage: OAuth2AccessTokenStorage |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We can drop the m
prefix here ;)
What was done
I created a package called coroutines. This package will contain every class that makes a reference to Kotlin coroutines.
Had to created the grants again with no reference to RxJava and adding the suspend keyword in the methods, whenever needed.