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

Technology Community › Category: Flutter › Why is exit(0) not preferred for closing an app?
VietMX Staff asked 5 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.