Skip to content

Instantly share code, notes, and snippets.

@lelandrichardson
Created August 27, 2020 21:54
Show Gist options
  • Save lelandrichardson/468d7214f62e91e525535232e6c5e8d9 to your computer and use it in GitHub Desktop.
Save lelandrichardson/468d7214f62e91e525535232e6c5e8d9 to your computer and use it in GitHub Desktop.
fun Example(a: () -> Unit, b: suspend () -> Unit) {
a() // allowed
b() // NOT allowed
}
suspend
fun Example(a: () -> Unit, b: suspend () -> Unit) {
a() // allowed
b() // allowed
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment