mirror of
https://github.com/GitJournal/GitJournal.git
synced 2025-06-29 10:17:16 +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);
|
await reportError(isolateError.first, isolateError.last);
|
||||||
}).sendPort);
|
}).sendPort);
|
||||||
|
|
||||||
runZoned<Future<void>>(() async {
|
runZonedGuarded(() async {
|
||||||
await JournalApp.main(pref);
|
await JournalApp.main(pref);
|
||||||
}, onError: reportError);
|
}, reportError);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user