ApiResult
Toggle table of contents
common
Platform filter
common
Switch theme
ApiResult
core
pro.
respawn.
apiresult
accumulate()
Api
Result
Companion
apply()
as
Api
Result()
as
Result
catch
Exceptions()
cause
chain()
Condition
Not
Satisfied
Exception
error
If()
error
If
Empty()
error
On
Loading()
error
On
Null()
error
Unless()
exception
Or
Null()
filter()
filter
Errors()
filter
Nulls()
filter
Successes()
first
Success()
first
Success
Or
Null()
first
Success
Or
Throw()
flat
Map()
flow()
fold()
if
Empty()
map()
map
Either()
map
Error()
map
Errors()
map
Error
To
Cause()
map
Loading()
map
Or
Default()
map
Resulting()
map
Results()
map
Values()
merge()
message
Not
Finished
Exception
null
On
Error()
on
Each
Result()
on
Each
Success()
on
Empty()
on
Error()
on
Loading()
on
Success()
or()
or
Else()
or
Empty()
or
Null()
or
Throw()
recover()
recover
If()
require()
require
Is()
require
Not
Null()
rethrow()
rethrow
Cancellation()
run
Resulting()
stack
Trace
Suspend
Result()
then()
try
Chain()
try
Flow()
try
Map()
try
Recover()
try
Recover
If()
unit()
unwrap()
values()
core
/
pro.respawn.apiresult
/
firstSuccessOrNull
first
Success
Or
Null
inline
fun
<
T
>
Iterable
<
ApiResult
<
T
>
>
.
firstSuccessOrNull
(
)
:
T
?
Return the first successful value, or null if no success was found
See also
first
Success
first
Success
Or
Throw