IdempotentAsyncUtils class

Deduplicates in-flight calls: same key reuses the same future until it completes.

Constructors

IdempotentAsyncUtils()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
run<T>(Object key, Future<T> fn()) Future<T>
Runs fn for key; concurrent calls with the same key share one future.
toString() String
A string representation of this object.
override

Operators

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