Skip to content

Commit

Permalink
clean up kdoc
Browse files Browse the repository at this point in the history
  • Loading branch information
iaik-jheher committed Oct 25, 2024
1 parent 4e5f2e7 commit f21691f
Showing 1 changed file with 1 addition and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -41,13 +41,7 @@ inline fun <T> catchingUnwrapped(block: () -> T): Result<T> {
}
}

/**
* Non-fatal-only-catching version of stdlib's [runCatching] (calling the specified function [block] with `this` value
* as its receiver), directly returning a [Result] --
* Re-throws any fatal exceptions, such as `OutOfMemoryError`. Re-implements [Arrow](https://arrow-kt.io)'s
* [nonFatalOrThrow](https://apidocs.arrow-kt.io/arrow-core/arrow.core/non-fatal-or-throw.html)
* logic to avoid a dependency on Arrow for a single function.
*/
/** @see catchingUnwrapped */
@Suppress("NOTHING_TO_INLINE")
inline fun <T, R> T.catchingUnwrapped(block: T.() -> R): Result<R> {
contract {
Expand Down

0 comments on commit f21691f

Please sign in to comment.