class Zap::Utils::Pool(T)

Defined in:

utils/pool.cr

Constant Summary

Log = Zap::Log.for(self)

Constructors

Instance Method Summary

Instance methods inherited from class Object

or(other : T) : T | self forall T or, pipe(&) pipe

Constructor Detail

def self.new(capacity : Int32, &block : -> T) #

[View source]
def self.new(capacity : Int32) #

[View source]

Instance Method Detail

def close #

[View source]
def get : T #

[View source]
def get(&block : T -> ) #

[View source]
def release(obj : T) #

[View source]