toggle menu
ktor
2.3.12
3.0.0-rc-1
3.0.0-beta-2
3.0.0-beta-1
2.3.12
2.2.4
2.0.3
1.6.8
common
switch theme
search in API
ktor-io
/
io.ktor.utils.io.pool
/
useInstance
use
Instance
inline
fun
<
T
:
Any
,
R
>
ObjectPool
<
T
>
.
useInstance
(
block
:
(
T
)
->
R
)
:
R
Borrows and instance of
T
from the pool, invokes
block
with it and finally recycles it