Why is exit(0) not preferred for closing an app?

Technology CommunityCategory: FlutterWhy is exit(0) not preferred for closing an app?
VietMX Staff asked 3 years ago
  • Using exit(0) may likely lead to lose data as it doesn’t wait for any async operations to complete.
  • It may cause the underlying platform to act as if the application had crashed.