addPending method

void addPending(
  1. AcpServerConnectionState state
)

Adds state as a non-routable pending handshake.

Implementation

void addPending(AcpServerConnectionState state) {
  if (_reserved.contains(state.connectionId)) {
    throw StateError(
      'ACP connection ID is reserved by an asynchronous handshake',
    );
  }
  _addPending(state);
}