lightning-kmp
/
fr.acinq.lightning.utils
/
Try
/
Success
common
Success
data class
Success
<
T
>(result:
T
) :
Try
<
T
>
Content copied to clipboard
Functions
Properties
Functions
get
Link copied to clipboard
common
open override fun
get
():
T
Content copied to clipboard
get
Or
Else
Link copied to clipboard
common
open override fun
getOrElse
(f: () ->
T
):
T
Content copied to clipboard
map
Link copied to clipboard
common
open override fun <
R
>
map
(f: (
T
) ->
R
):
Try
<
R
>
Content copied to clipboard
recover
With
Link copied to clipboard
common
open override 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
open override val
isSuccess
:
Boolean
= true
Content copied to clipboard
result
Link copied to clipboard
common
val
result
:
T
Content copied to clipboard