Pool

interface Pool<T : Any>

Interface for managing a pool of objects.

Type Parameters

T

The pooled type.

Inheritors

Functions

Link copied to clipboard
abstract fun acquire(): T?
Link copied to clipboard
abstract fun release(instance: T): Boolean

Release an instance to the pool.