TemporalPool

class TemporalPool<T : Any>(reset: (T) -> Unit = {}, preallocate: Int = 0, gen: (Int) -> T)

Constructors

Link copied to clipboard
constructor(reset: (T) -> Unit = {}, preallocate: Int = 0, gen: (Int) -> T)

Functions

Link copied to clipboard
fun alloc(): T
Link copied to clipboard
fun freeAll()