def downloadResultsPage(onPageDownload: (List[String], Boolean) => Unit) {
body here...
}
In this example onPageDownload is the closure that will be called when the page is completed. To make the code self-document better, I'd really like to be able to have something like this:
(onPageDownload: (results: List[String], finished: Boolean) => Unit)
Is there a way to do this?
Thanks!
CaseClass => UnitwhereCaseClassiscase class CaseClass(results: List[String], finished: Boolean)