unbind method

Socket unbind ()

Implementation

Socket? unbind() {
  if (!isBound) {
    throw ZirconApiError('SocketReader is not bound');
  }
  _waiter.cancel();
  final Socket? result = _socket;
  _socket = null;
  return result;
}