Search Results for

    Show / Hide Table of Contents

    Class SemaphoreSlimPool

    Provides a pool of SemaphoreSlim objects to manage resource usage efficiently.

    Inheritance
    object
    SemaphoreSlimPool
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Glitch9
    Assembly: Glitch9.dll
    Syntax
    public static class SemaphoreSlimPool

    Methods

    | Edit this page View Source

    Get()

    Gets a SemaphoreSlim from the pool.

    Declaration
    public static SemaphoreSlim Get()
    Returns
    Type Description
    SemaphoreSlim

    A SemaphoreSlim instance.

    | Edit this page View Source

    GetAsync(out SemaphoreSlim)

    Gets a pooled SemaphoreSlim and outputs it.

    Declaration
    public static PooledObject<SemaphoreSlim> GetAsync(out SemaphoreSlim semaphore)
    Parameters
    Type Name Description
    SemaphoreSlim semaphore

    The SemaphoreSlim instance.

    Returns
    Type Description
    PooledObject<SemaphoreSlim>

    A pooled SemaphoreSlim instance.

    | Edit this page View Source

    Release(SemaphoreSlim)

    Releases a SemaphoreSlim back to the pool.

    Declaration
    public static void Release(SemaphoreSlim toRelease)
    Parameters
    Type Name Description
    SemaphoreSlim toRelease

    The SemaphoreSlim to release.

    • Edit this page
    • View Source
    In this article
    Back to top AI DevKit Documentation