dispatch method
Invokes and awaits the event chain with an event
.
Implementation
Future dispatch(T event) async {
switch (mode) {
case AsyncLineMode.parallel:
_dispatchParallel(event);
break;
case AsyncLineMode.sequential:
_dispatchSequential(event);
break;
}
}