net / com.drake.net.scope / AndroidScope / finally
finally¶
protected var finally: (
AndroidScope
.(
Throwable
?) ->
Unit
)?``protected open fun finally(e:
Throwable
?):
Unit
Parameters¶
e
- 如果发生异常导致作用域执行完毕, 则该参数为该异常对象, 正常结束则为nullopen fun finally(block:
AndroidScope
.(
Throwable
?) ->
Unit
= {}):
AndroidScope
无论正常或者异常结束都将最终执行