invoke method
Invokes the RunnableMap on the given input
.
input
- the input to invoke the RunnableMap on.options
- the options to use when invoking the RunnableMap.
Implementation
@override
Future<Map<String, dynamic>> invoke(
final RunInput input, {
final RunnableOptions? options,
}) async {
final futures = steps.entries.map((entry) async {
final result = await entry.value.invoke(
input,
options: entry.value.getCompatibleOptions(options),
);
return MapEntry(entry.key, result);
});
final results = await Future.wait(futures);
return Map.fromEntries(results);
}