push method
Implementation
Future<void> push() async {
try {
await initMultimedia();
memory["completed"] = 0;
memory["ind"] = 0;
memory["total"] = count;
PrecisionStopwatch psw = PrecisionStopwatch.start();
print("Starting pipeline with ${memory["total"]} jobs");
await transform(this);
print("Pipeline completed in ${psw.getMilliseconds()}ms");
} catch (e, es) {
print("Pipeline failed: $e");
print(es);
} finally {
await Future.wait(memory.values
.whereType<MagickWand>()
.map((w) => w.destroyMagickWand()));
}
}