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.
- Listed in Other Alta assemblies
- Inherits or implements
FactoryAsyncPooled<TConcrete, TInterface>,IFactoryAsyncPooled<TParam, 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(TParam param) | Gets a pooled or new instance, calls OnSpawn(param) on it and returns it. |