Last active
October 18, 2020 13:54
-
-
Save chaxiu/dcc5b80fbb771a0573ae564718d67931 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// pseudocode | |
// marked by label | |
// ↓ ↓ | |
label: whenStart | |
when (continuation.label) { | |
0 -> { | |
... | |
} | |
1 -> { | |
... | |
suspendReturn = noSuspendFriendList(user, continuation) | |
if (suspendReturn == sFlag) { | |
return suspendReturn | |
} else { | |
result = suspendReturn | |
// Jump to the place marked by label | |
// To execute the "when expression" again | |
goto: whenStart | |
} | |
} | |
2 -> { | |
... | |
} | |
3 -> { | |
... | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment