Pool<T> class

Constructors

Pool(int targetSize, FutureOr<T> _createItem(), {FutureOr<bool> checkIsLive(T)?, Duration? maxLifetime})

Properties

available int
no setter
hashCode int
The hash code for this object.
no setterinherited
maxLifetime Duration?
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
targetSize int
getter/setter pair
total int
no setter

Methods

fill() Future<void>
give(T item) → void
giveReserved(T item) → T
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
remove(T item) → void
take({Duration? timeout}) Future<T>
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited