fromMap<RunInput extends Object> static method

Runnable<RunInput, RunnableOptions, Map<String, dynamic>> fromMap<RunInput extends Object>(
  1. Map<String, Runnable<RunInput, RunnableOptions, Object>> steps
)

Creates a RunnableMap from a map of Runnable objects.

A RunnableMap allows you to run multiple Runnable objects in parallel on the same input returning a map of the results.

  • steps - the map of Runnable objects to run in parallel.

Implementation

static Runnable<RunInput, RunnableOptions, Map<String, dynamic>>
    fromMap<RunInput extends Object>(
  final Map<String, Runnable<RunInput, RunnableOptions, Object>> steps,
) {
  return RunnableMap<RunInput>(steps);
}