publishUpdate method

void publishUpdate ()

Notifies the underlying stream of an update. Passes a reference to this object to the stream.

Implementation

void publishUpdate() {
  if (_subject.isClosed) return;

  try {
    preUpdatePublished();
    _subject.add(this);
    postUpdatePublished();
  } catch (e, st) {
    onError(e, st);
  }
}