anchor.diff:  %% @private
   -spec receive_chunk(term(), pid(), term()) -> term().
   receive_chunk(Event, From, State) ->
  -  enqueue_work_or_stop(receive_chunk, Event, From, State).
  +    enqueue_work_or_stop(receive_chunk, Event, From, State).
   
   %% @private
   %% @doc Chunked data response
  
positive.code: %% @private
  -spec receive_data(term(), pid(), term()) -> term().
  receive_data(Event, From, State) ->
    enqueue_work_or_stop(receive_data, Event, From, State).
  
  %% @private
  %% @doc Regular response
  
negative.code: -spec parse_event(binary()) -> event().
  parse_event(EventBin) ->
      Lines = binary:split(EventBin, <<"\n">>, [global]),
      FoldFun =
          fun(Line, #{data := Data} = Event) ->
                  case Line of
                      <<"data: ", NewData/binary>> ->
                          Event#{data => <<Data/binary, NewData/binary, "\n">>};
                      <<"id: ", Id/binary>> ->
                          Event#{id => Id};
                      <<"event: ", EventName/binary>> ->
                          Event#{event => EventName};
                      <<_Comment/binary>> ->
                          Event
                  end
          end,
      lists:foldl(FoldFun, #{data => <<>>}, Lines).
  
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  %% gen_fsm callbacks
  