ktor
1.6.8
3.0.3
3.0.2
3.0.0
2.3.12
2.2.4
2.0.3
1.6.8
common
ktor-io
/
io.ktor.utils.io.pool
/
useInstance
use
Instance
common
inline
fun
<
T
:
Any
,
R
>
ObjectPool
<
T
>
.
useInstance
(
block
:
(
T
)
->
R
)
:
R
Content copied to clipboard
Borrows and instance of
T
from the pool, invokes
block
with it and finally recycles it