Skip to main content

IFactoryAsyncPooled<TInterface>

An interface in Alta.VContainerLayer.Runtime, the global namespace.

Async factory that reuses instances from a pool, with no spawn parameters.

Methods​

MemberWhat it is
void Despawn(TInterface instance)Returns the instance to the pool.
Task<TInterface> Spawn()Gets an instance from the pool, or makes one, and returns it when ready.