holoride
Search Results for

    Show / Hide Table of Contents

    Class ObjectPool<T>

    Inheritance
    object
    ObjectPool<T>
    Namespace: Holoride.ElasticSDK
    Assembly: Holoride.ElasticSDK.Library.Runtime.dll
    Syntax
    public sealed class ObjectPool<T>
    Type Parameters
    Name Description
    T

    Constructors

    ObjectPool(Func<T>, Action<T>, int, int)

    Declaration
    public ObjectPool(Func<T> createFunc, Action<T> actionOnRelease = null, int defaultCapacity = 10, int maxSize = 10000)
    Parameters
    Type Name Description
    Func<><T> createFunc
    Action<><T> actionOnRelease
    int defaultCapacity
    int maxSize

    Methods

    Get()

    Declaration
    public T Get()
    Returns
    Type Description
    T

    Release(T)

    Declaration
    public void Release(T value)
    Parameters
    Type Name Description
    T value
    In This Article

    Back to top
    ©   holoride
    Privacy   Imprint