mirai-core
/
net.mamoe.mirai.utils
/
java.lang.ref.WeakReference
/
ifAbsent
ifAbsent
inline
fun
<
T
,
R
>
WeakRef
<
T
>
.
ifAbsent
(
block
:
(
T
)
->
R
)
:
R
?
Call the block if the referent is absent