EzHookTool
Toggle table of contents
jvm
Target filter
jvm
Switch theme
Search in API
Skip to content
EzHookTool
core
/
io.github.lingqiqi5211.ezhooktool.core
/
tryOrFalse
try
Or
False
inline
fun
tryOrFalse
(
block
:
(
)
->
Boolean
)
:
Boolean
执行代码块,异常时返回 false。
val success = tryOrFalse { riskyOperation(); true }
Content copied to clipboard