Skip to main content

FactoryAsyncPooled<TParam1, TParam2, TConcrete, TInterface>

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

Pooled async prefab factory whose instances take two parameters 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(TParam1 param1, TParam2 param2)Gets a pooled or new instance, calls OnSpawn with both parameters and returns it.