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