run<T> method

Future<T> run<T>(
  1. Future<T> fn(
      )
    )

    Implementation

    Future<T> run<T>(Future<T> Function() fn) {
      _connection.setTransactionId(id);
      try {
        return fn();
      } finally {
        _connection.clearTransactionId();
      }
    }