finally

fun <R, E : Exception> ResultBlock<R, E>.finally(block: (Result<R, E>) -> Unit)

Defines a block of code that is always called after result block has finished. The block is always executed even on failures caused by undefined Throwables or Exceptions.