Skip to content

Commit

Permalink
Add a comment
Browse files Browse the repository at this point in the history
  • Loading branch information
temeddix committed Oct 8, 2023
1 parent 1e184ff commit 503f16c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions example/lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ class MyApp extends StatefulWidget {
class _MyAppState extends State<MyApp> {
final _appLifecycleListener = AppLifecycleListener(
onExitRequested: () async {
// Stop Rust tasks before closing the Flutter app.
await RustInFlutter.ensureFinalized();
return AppExitResponse.exit;
},
Expand Down

0 comments on commit 503f16c

Please sign in to comment.