available property

int get available

Returns the number of available slots in the pool.

Implementation

int get available => _capacity - allocated;