ktor
2.0.0-beta-1
2.2.4
2.2.3
2.2.2
2.2.1
2.2.0
2.0.3
2.0.2
2.0.1
2.0.0
2.0.0-rc-1
2.0.0-beta-1
1.6.8
1.6.7
common
ktor-io
/
io.ktor.utils.io.pool
/
useBorrowed
use
Borrowed
common
inline
fun
<
T
:
Any
,
R
>
ObjectPool
<
T
>
.
useBorrowed
(
block
:
(
T
)
->
R
)
:
R
Content copied to clipboard
Borrows and instance of
T
from the pool, invokes
block
with it and finally recycles it