consider ``` private fun doSomething() = async&l...
# coroutines
g
consider
Copy code
private fun doSomething() = async<Unit> {
  //calls await methods, jumps on and off UI thread
}

@FXML fun handler(clickEvent: Event){
  doSomething(); //note: we throw the `Future` returned by `async` in the trash here
}