Skip to main content

FactoryAsyncPooled<TParam, TConcrete, TInterface>

An abstract class in Alta.VContainerLayer.Runtime, the global namespace.

Pooled async prefab factory whose instances take one parameter on spawn through IPooledInstance.OnSpawn.

Constructors​

MemberWhat it is
protected FactoryAsyncPooled()Creates a FactoryAsyncPooled with default values.

Methods​

MemberWhat it is
async Task<TInterface> Spawn(TParam param)Gets a pooled or new instance, calls OnSpawn(param) on it and returns it.