//
koffee-backend
/
eu.yeger.koffee.model.dto
/
andThen
andThen
Transforms the data of
Result
s if they are
Result.Success
es.
Return
The new
Result
.
Author
Jan Müller
Parameters
<receiver>
The source
Result
.
T
The source type.
transformation
The transformation operation. Can be used to turn into
Result.Failure
s.
U
The target type.
suspend fun <
T
:
Any
,
U
:
Any
>
Result
<
T
>.
andThen
(transformation:
SuspendFunction1
<
T
,
Result
<
U
>>):
Result
<
U
>
Content copied to clipboard