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
/
use
use
inline suspend
fun
<
T
:
AsyncCloseable
?
,
TR
>
T
.
use
(
block
:
(
T
)
->
TR
)
:
TR
Executes the
block
with the
AsyncCloseable
as parameter, and closes the resource once done.