run<R> abstract method

  1. @override
Future<R> run<R>(
  1. Future<R> fn(
    1. Session session
    ), {
  2. SessionSettings? settings,
  3. L? locality,
})
override

Obtains a Session capable of running statements and calls fn with it.

Returns the result (either the value or an error) of invoking fn. No updates will be reverted in the event of an error.

Implementation

@override
Future<R> run<R>(
  Future<R> Function(Session session) fn, {
  SessionSettings? settings,
  L? locality,
});