void write([InvokeResponse resp ])

Write this result to the result given by resp.

Source

void write([InvokeResponse resp]) {
  if (resp != null) {
    if (response == null) {
      response = resp;
    } else {
      logger.warning("can not use same AsyncTableResult twice");
    }
  }

  if (response != null && (rows != null || meta != null || status == StreamStatus.closed)) {
    response.updateStream(rows, columns: columns, streamStatus: status, meta: meta);
    rows = null;
    columns = null;
  }
}