toFutureVoid<L> function
Convert a TaskEither into a Future<void>, that runs the side effect on Left.
Implementation
Future<void> Function(TaskEither<L, dynamic> taskEither) toFutureVoid<L>(
void Function(L value) onLeft,
) =>
(te) => Future.sync(te.chain(fold(onLeft, (_) {})).call);