Skip to content

Instantly share code, notes, and snippets.

@chaxiu
Created October 18, 2020 12:04
Show Gist options
  • Save chaxiu/abd313fb438f54d19928d81dcfec4259 to your computer and use it in GitHub Desktop.
Save chaxiu/abd313fb438f54d19928d81dcfec4259 to your computer and use it in GitHub Desktop.
// Three variables, corresponding to the three variables of the original function
lateinit var user: String
lateinit var friendList: String
lateinit var feedList: String
// The running result of the coroutine
var result = continuation.result
// The return of the suspending function
var suspendReturn: Any? = null
// CoroutineSingletons Is an enum class
// COROUTINE_SUSPENDED means the current function is suspended
val sFlag = CoroutineSingletons.COROUTINE_SUSPENDED
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment