mirror of
https://github.com/GitJournal/GitJournal.git
synced 2025-06-28 09:47:35 +08:00
Port away from deprecated runZoned
This commit is contained in:
@ -32,7 +32,7 @@ void main() async {
|
||||
await reportError(isolateError.first, isolateError.last);
|
||||
}).sendPort);
|
||||
|
||||
runZoned<Future<void>>(() async {
|
||||
runZonedGuarded(() async {
|
||||
await JournalApp.main(pref);
|
||||
}, onError: reportError);
|
||||
}, reportError);
|
||||
}
|
||||
|
Reference in New Issue
Block a user