onClosed

fun Tab.onClosed(context: CoroutineContext = Dispatchers.JavaFx, action: suspend CoroutineScope.(Event) -> Unit)

See also

Tab.setOnClosed