close method

void close()

Implementation

void close() {
  closed = true;
  _cancelAll(const ClosedException());
  receivePort.close();
}