lightning-kmp
/
fr.acinq.lightning.utils
/
Try
common
Try
sealed class
Try
<
T
>
Content copied to clipboard
Types
Functions
Properties
Inheritors
Types
Companion
Link copied to clipboard
common
object
Companion
Content copied to clipboard
Failure
Link copied to clipboard
common
data class
Failure
<
T
>(error:
Throwable
) :
Try
<
T
>
Content copied to clipboard
Success
Link copied to clipboard
common
data class
Success
<
T
>(result:
T
) :
Try
<
T
>
Content copied to clipboard
Functions
get
Link copied to clipboard
common
abstract fun
get
():
T
Content copied to clipboard
get
Or
Else
Link copied to clipboard
common
abstract fun
getOrElse
(f: () ->
T
):
T
Content copied to clipboard
map
Link copied to clipboard
common
abstract fun <
R
>
map
(f: (
T
) ->
R
):
Try
<
R
>
Content copied to clipboard
recover
With
Link copied to clipboard
common
abstract fun
recoverWith
(f: () ->
Try
<
T
>):
Try
<
T
>
Content copied to clipboard
Properties
isFailure
Link copied to clipboard
common
val
isFailure
:
Boolean
Content copied to clipboard
isSuccess
Link copied to clipboard
common
abstract val
isSuccess
:
Boolean
Content copied to clipboard
Inheritors
Try
Link copied to clipboard
Try
Link copied to clipboard