Skip to content

Instantly share code, notes, and snippets.

@le0nidas
Last active March 28, 2021 10:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save le0nidas/d409eba33e967709196920a39f98f3b0 to your computer and use it in GitHub Desktop.
Save le0nidas/d409eba33e967709196920a39f98f3b0 to your computer and use it in GitHub Desktop.
fun main(): Unit = runBlocking {
launch {
val tasks = suspendCoroutine<List<Task>> { continuation -> downloadTasks(ContinuationAdapter(continuation)) }
printTasks(tasks)
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment