loadBulk<T> method
Loads an array of states from the store using their keys.
correlationId
(optional) transaction id to trace execution through call chain.keys
unique state keys. Returns an array with state values.
Implementation
@override
Future<List<StateValue<T>>> loadBulk<T>(
String? correlationId, List<String> keys) async {
// Cleanup the stored states
_cleanup();
var result = <StateValue<T>>[];
for (var key in keys) {
var value = await load<T>(correlationId, key);
result.add(StateValue(key, value));
}
return result;
}