public InternalObjectPool(IInternalObjectPoolPolicy <T> policy)
        {
            _policy = policy;

            for (var i = 0; i < 5; i++)
            {
                Return(_policy.Create());
            }
        }
Example #2
0
        public InternalObjectPool(IInternalObjectPoolPolicy <T> policy)
        {
            Handlebars.Disposables.Enqueue(new Disposer(this));

            _policy = policy;

            for (var i = 0; i < 5; i++)
            {
                Return(_policy.Create());
            }
        }