All Downloads are FREE. Search and download functionalities are using the official Maven repository.

commonMain.com.squareup.workflow1.internal.Throwables.kt Maven / Gradle / Ivy

There is a newer version: 1.12.1-beta17
Show newest version
package com.squareup.workflow1.internal

import kotlinx.coroutines.CancellationException

internal tailrec fun Throwable.unwrapCancellationCause(): Throwable? {
  if (this !is CancellationException) return this
  return cause?.unwrapCancellationCause()
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy