class Syn::Pool(T)

Overview

EXPERIMENTAL Relies on the experimental timeout feature.

Defined in:

pool.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(capacity : Int32 = 5, timeout : Time::Span = 5.seconds, &generator : -> T) #

[View source]

Instance Method Detail

def checkin(obj : T) : Nil #

[View source]
def checkout : T #

[View source]
def using(& : T -> U) : U forall U #

[View source]