anchor.diff:                      TimeoutFun
                   );
               _Else ->
  -                end_sending_changes(Callback, EndSeq, ResponseType)
  +                end_sending_changes(Callback, UserAcc2, EndSeq, ResponseType)
               end;
  -        stop ->
  +        {stop, UserAcc3} ->
               % ?LOG_INFO("wait_db_updated stop ~p",[{Db#db.name, EndSeq}]),
  -            end_sending_changes(Callback, EndSeq, ResponseType)
  +            end_sending_changes(Callback, UserAcc3, EndSeq, ResponseType)
           end
       end.
   
  -end_sending_changes(Callback, EndSeq, ResponseType) ->
  -    Callback({stop, EndSeq}, ResponseType).
  -
  -changes_enumerator(DocInfo, {Db, _, _, FilterFun, Callback, "continuous",
  -    Limit, IncludeDocs}) ->
  +end_sending_changes(Callback, UserAcc, EndSeq, ResponseType) ->
  +    Callback({stop, EndSeq}, ResponseType, UserAcc).
  +
  +changes_enumerator(DocInfo, {Db, _, _, FilterFun, Callback, UserAcc,
  +    "continuous", Limit, IncludeDocs}) ->
   
       #doc_info{id=Id, high_seq=Seq,
               revs=[#rev_info{deleted=Del,rev=Rev}|_]} = DocInfo,
  
positive.code:     Go = if Limit =< 1 -> stop; true -> ok end,
      case Results of
      [] ->
          {Go, {Db, Seq, Prepend, FilterFun, Callback, ResponseType, Limit,
                  IncludeDocs}
          };
      _ ->
          ChangesRow = changes_row(Db, Seq, Id, Del, Results, Rev, IncludeDocs),
          Callback({change, ChangesRow, Prepend}, ResponseType),
          {Go, {Db, Seq, <<",\n">>, FilterFun, Callback, ResponseType, Limit - 1,
                  IncludeDocs}
          }
      end.
  
  
negative.code:                     ok
                  end
              ),
              UserAcc2 = start_sending_changes(Callback, UserAcc, Feed),
              {Timeout, TimeoutFun} = get_changes_timeout(Args, Callback),
              try
                  keep_sending_changes(
                      Args,
                      Callback,
                      UserAcc2,
                      Db,
                      StartSeq,
                      <<"">>,
  