collectSync method

DataFrame collectSync({
  1. ExecutionOptions options = const ExecutionOptions(),
})

Implementation

DataFrame collectSync({ExecutionOptions options = const ExecutionOptions()}) {
  final lease = _owner.lease('LazyFrame');
  try {
    return _runtime._adoptFrame(
      _runtime._client.invokeSync('lazyCollect', {
        'input': lease.handle.toString(),
        ...options._toJson(),
      }),
    );
  } finally {
    lease.end();
  }
}