ReturnablePool

class ReturnablePool<T : Any>(_reset: (T) -> Unit = { }, gen: (index: Int) -> T)

Constructors

Link copied to clipboard
constructor(_reset: (T) -> Unit = { }, gen: (index: Int) -> T)

Properties

Link copied to clipboard
var current: T

Functions

Link copied to clipboard
fun next(): T
Link copied to clipboard
fun reset()