save method
Saves items to external data source using configured saver component.
correlationId
(optional) transaction id to trace execution through call chain. Return (optional) Future that receives error or null for success.
Implementation
Future save(String? correlationId) async {
if (saver == null) {
return null;
}
await saver!.save(correlationId, items);
logger.trace(correlationId, 'Saved %d items', [items.length]);
}