Pool

interface Pool<T : Any>(source)

Interface for managing a pool of objects.

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.