endWrite_(success) {
    if (!success) {
      this.notSent = this.inProgress[0].events.concat(this.notSent);
      this.inProgress = [];
      this.counter -= 1;
    }
    this.writeInProgress = false;
  }
Change status of WorkspaceClient once network call completes.
Change writeInProgress to true. If write was successful, the LocalEntry
remains in inProgress, otherwise, the LocalEntry is deleted and the
events move back to the front of notSent.
@param {boolean} success Indicates the success of the database write.
@private