close method

  1. @override
void close()
override

Cleans up any resources associated with it the Runnable.

For example, if the Runnable uses a http client internally, it closes it. If there is no resource to clean up, this method does nothing.

Don't try to call the Runnable after calling this method.

Implementation

@override
void close() {
  for (final step in steps.values) {
    step.close();
  }
}