| Filename | Latest commit message | Latest commit date |
|---|---|---|
This is the same thing try{} does, and allows to lift
return out of tryTest.
This allows syntaxes likeĀ :
fun foo() = try {
"Foo";
} cleanup {
doSomeCleanup()
}
}
val network = try {
registerNetworkCallback
callback.getNetwork()
} cleanup {
unregisterNetworkCallback
}
}
Note: bypassing ktlint because of b/185077240
Test: FrameworksNetTests
Change-Id: Ib8f6fde7ccfd62fdcb3c1e3b7b03909ed94d4b23
|
||
| .. | ||
| net/module/util | ||
| testutils | ||