reject method

void reject()

Rejects this transaction without updating the parent queue.

The parent will continue as though StreamQueue.startTransaction hadn't been called. Further requests on all queues created by this transaction will complete as though cancel were called with immediate: true.

Throws a StateError if commit or reject have already been called.

Implementation

void reject() {
  _assertActive();
  _rejected = true;
  _done();
}