Skip to content

Instantly share code, notes, and snippets.

@chaxiu
Created October 18, 2020 12:04
Show Gist options
  • Save chaxiu/f724e797245db0885f3402dfac483455 to your computer and use it in GitHub Desktop.
Save chaxiu/f724e797245db0885f3402dfac483455 to your computer and use it in GitHub Desktop.
when (continuation.label) {
0 -> {
...
}
1 -> {
...
// function name changed
// ↓
suspendReturn = noSuspendFriendList(user, continuation)
// Determine if it suspended
if (suspendReturn == sFlag) {
return suspendReturn
} else {
result = suspendReturn
//go to next state
}
}
2 -> {
...
}
3 -> {
...
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment