AbstractExprEvaluatorPool
Abstract base class for a pool of AbstractExprEvaluator instances.
Uses a coroutine Channel as a bounded buffer to manage evaluator instances. Subclasses are responsible for populating the pool in their init block.
Parameters
size
the number of evaluator instances in the pool
Type Parameters
T
the concrete type of AbstractExprEvaluator managed by this pool
Functions
Link copied to clipboard
Evaluates expr by borrowing an evaluator from the pool, blocking the current thread until one is available and recycling it afterwards.