Skip to content

Instantly share code, notes, and snippets.

@devrath
Created October 6, 2021 16:45
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 devrath/fd3dd1396b687158279ba2bd41152b7c to your computer and use it in GitHub Desktop.
Save devrath/fd3dd1396b687158279ba2bd41152b7c to your computer and use it in GitHub Desktop.
fun main() {
println("Start")
initiateUploadingImage(service)
println("End")
}
fun initiateUploadingImage(
imageUpload:()->Unit
) {
imageUpload()
}
val service = {
println("Image is uploaded")
}
/********** OUTPUT:
Start
Image is uploaded
End
*****************/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment