korlibs
Toggle table of contents
6.1.0-SNAPSHOT
common
Target filter
common
Switch theme
Search in API
Skip to content
korlibs
korlibs-platform
/
korlibs.io.async
/
useThis
use
This
inline suspend
fun
<
T
:
AsyncCloseable
?
,
TR
>
T
.
useThis
(
block
:
T
.
(
)
->
TR
)
:
TR
Executes the
block
with the
AsyncCloseable
as receiver, and closes the resource once done.