Skip to main content

FactoryAsyncPooled<TParam1, TParam2, TParam3, TConcrete, TInterface>

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

Pooled async prefab factory whose instances take three 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, TParam3 param3)Gets a pooled or new instance, calls OnSpawn with the three parameters and returns it.