fn initPreheated(allocator: std.mem.Allocator, initial_size: usize) MemoryPoolError!Pool

Creates a new memory pool and pre-allocates initial_size items. This allows the up to initial_size active allocations before a OutOfMemory error happens when calling create().

Parameters

allocator: std.mem.Allocator,
initial_size: usize,