/*
* Copyright 2014-2021 JetBrains s.r.o and contributors. Use of this source code is governed by the Apache 2.0 license.
*/

package io.ktor.client.utils

import io.ktor.utils.io.*

/**
 * If the exception contains cause that differs from [CancellationException] returns it otherwise returns itself.
 *
 * [Report a problem](https://ktor.io/feedback/?fqname=io.ktor.client.utils.unwrapCancellationException)
 */
public expect fun Throwable.unwrapCancellationException(): Throwable
