Package io.ktor.utils.io.pool
Types
class ByteBufferPool : DefaultPool<ByteBuffer> |
|
abstract expect class DefaultPool<T : Any> : ObjectPool<T> Default object pool implementation. |
|
class DirectByteBufferPool : DefaultPool<ByteBuffer> |
|
abstract class NoPoolImpl<T : Any> : ObjectPool<T> A pool implementation of zero capacity that always creates new instances |
|
abstract class SingleInstancePool<T : Any> : ObjectPool<T> A pool that produces at most one instance |
Functions
Borrows and instance of T from the pool, invokes block with it and finally recycles it |
|
Borrows and instance of T from the pool, invokes block with it and finally recycles it |