class Pool(T)

Overview

Generic pool.

It will create N instances that can be checkin then checkout. Trying to checkout an instance from an empty pool will block until another coroutine checkin an instance back, up until a timeout is reached.

Defined in:

lib/pool/src/pool.cr
tiktok_passport/ext/pool.cr

Instance Method Summary

Instance Method Detail

def each_resource(&) #

[View source]