onFinished

fun Animation.onFinished(context: CoroutineContext = Dispatchers.JavaFx, action: suspend CoroutineScope.(ActionEvent) -> Unit)

See also

Animation.setOnFinished