//
koffee-backend
/
eu.yeger.koffee.model.dto
/
withResult
withResult
Consumes the data of
Result
s if they are
Result.Success
es.
Return
The identity of the
Result
.
Author
Jan Müller
Parameters
<receiver>
The source
Result
.
consumer
The consuming operation.
T
The source type.
suspend fun <
T
:
Any
>
Result
<
T
>.
withResult
(consumer:
SuspendFunction1
<
T
,
Unit
>):
Result
<
T
>
Content copied to clipboard