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