sequential<Event> function Null safety

EventTransformer<Event> sequential<Event>()

Process events one at a time by maintaining a queue of added events and processing the events sequentially.

Note: there is no event handler overlap and every event is guaranteed to be handled in the order it was received.

Implementation

EventTransformer<Event> sequential<Event>() {
  return (events, mapper) => events.asyncExpand(mapper);
}