ktor
2.0.x
Select version
3.3.x
3.2.x
3.1.x
3.0.x
2.3.x
2.2.x
2.0.x
1.6.x
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