Pool<'resource>Type

PackageAxial.Layers
A fixed-size set of eagerly provisioned resource instances, handed out round-robin.

Specification

Kind
Type
Members
3
Examples
0
NextSignature
this.Next
CountSignature
this.Count
InstancesSignature
this.Instances

Summary

NameSignatureSynopsis
Nextthis.NextReturns the next instance, distributing calls round-robin across every instance.
Countthis.CountThe number of instances in the pool.
Instancesthis.InstancesEvery instance in the pool, e.g.

Next

this.Next
Member
Returns the next instance, distributing calls round-robin across every instance.

Returns

'resource

Count

this.Count
Member
The number of instances in the pool.

Returns

int

Instances

this.Instances
Member
Every instance in the pool, e.g. to release or inspect them directly.

Returns

'resource seq