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.
- Listed in Other Alta assemblies
- Inherits or implements
FactoryAsyncPooled<TConcrete, TInterface>,IFactoryAsyncPooled<TParam1, TParam2, TParam3, TInterface>,IFactory,IDisposable
Constructors
| Member | What it is |
|---|---|
protected FactoryAsyncPooled() | Creates a FactoryAsyncPooled with default values. |
Methods
| Member | What 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. |