Table of Contents

Interface IPool<T>

Namespace
Exiled.API.Features.Pools
Assembly
Exiled.API.dll

Defines the contract for a class that stores and retrieves commonly used objects.

public interface IPool<T>

Type Parameters

T

The type that is stored in the pool.

Extension Methods

Methods

Get()

Retrieves a stored object of type T, or creates it if it does not exist.

T Get()

Returns

T

The stored object, or a new object, of type T.

Return(T)

Returns the object to the pool.

void Return(T obj)

Parameters

obj T

The object to return, of type T.