struct Novika::ObjectPool(T)
- Novika::ObjectPool(T)
- Struct
- Value
- Object
Overview
A naïve object pool, inspired by:
https://gist.github.com/floere/3121579
Defined in:
novika/object_pool.crConstructors
Instance Method Summary
-
#acquire : T
Returns a free/new instance of the object.
-
#release(obj : T)
Clears the given instance of the object, and releases it so that it can be acquired by someone else.
Constructor Detail
Instance Method Detail
def release(obj : T)
#
Clears the given instance of the object, and releases it so that it can be acquired by someone else.