IFactoryAsyncPooled<TInterface>
An interface in Alta.VContainerLayer.Runtime, the global namespace.
Async factory that reuses instances from a pool, with no spawn parameters.
- Listed in Other Alta assemblies
- Inherits or implements
IFactory,IDisposable
Methods
| Member | What it is |
|---|---|
void Despawn(TInterface instance) | Returns the instance to the pool. |
Task<TInterface> Spawn() | Gets an instance from the pool, or makes one, and returns it when ready. |