onCancellation

suspend fun onCancellation(action: () -> Unit): Nothing
fun <T> Flow<T>.onCancellation(action: suspend FlowCollector<T>.() -> Unit): Flow<T>