Edytuj

Udostępnij za pośrednictwem


IObjectPool<T> Interface

Definition

Simple object pool Interface. Objects allocated should be returned to the pool when disposed.

public interface IObjectPool<T> where T : IDisposable
type IObjectPool<'T (requires 'T :> IDisposable)> = interface
Public Interface IObjectPool(Of T)

Type Parameters

T
Derived

Methods

Allocate()

Allocates a pooled resource

Free(T)

Returns a resource to the pool

Applies to