How can I unconditionally exit the Dart application?

In a server-side VM application with several futures that may or may not be returned. How to unconditionally exit the application?

+6
source share
1 answer

To exit the virtual machine:

import 'dart:io'; main() { exit(0); // or non-zero for some error code } 

What is described here . Thank you for asking!

+8
source

Source: https://habr.com/ru/post/916416/


All Articles