Skip to main content

IFactoryAsyncPooled<TParam1, TParam2, TInterface>

An interface in Alta.VContainerLayer.Runtime, the global namespace.

Async pooled factory that passes two parameters to each spawned instance.

Methods​

MemberWhat it is
void Despawn(TInterface instance)Returns the instance to the pool.
Task<TInterface> Spawn(TParam1 param1, TParam2 param2)Gets or makes an instance, passing it the parameters, and returns it when ready.