run<T> static method

T run<T>(
  1. T f()
)

Implementation

static T run<T>(T Function() f) {
  try {
    return f();
  } catch (e, s) {
    global.value = ErrorReport(e, s);
    rethrow;
  }
}