Skip to content

Instantly share code, notes, and snippets.

@le0nidas
Created March 28, 2021 09:56
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/ab0307a3384341452cb221d47068b636 to your computer and use it in GitHub Desktop.
Save le0nidas/ab0307a3384341452cb221d47068b636 to your computer and use it in GitHub Desktop.
private class ContinuationAdapter(
private val continuation: Continuation<List<Task>>
) : DownloadCallback {
override fun onDownloaded(tasks: List<Task>) {
continuation.resume(tasks)
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment