runAsync<T> static method

Future<T> runAsync<T>(
  1. Future<T> f()
)

Implementation

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