complete method

void complete({
  1. LogicValue? slvErr,
})

Called by a completer when a transfer is completed.

Implementation

void complete({LogicValue? slvErr}) {
  if (_returnedSlvErr != null) {
    throw RohdHclException('Packet is already completed.');
  }

  _returnedSlvErr = slvErr;
  _completer.complete();
}