Skip to content

Instantly share code, notes, and snippets.

@kdmatrosov
Last active May 29, 2020 18:57
Show Gist options
  • Select an option

  • Save kdmatrosov/e4b3d30fa56d017ef8b74967c755c7cf to your computer and use it in GitHub Desktop.

Select an option

Save kdmatrosov/e4b3d30fa56d017ef8b74967c755c7cf to your computer and use it in GitHub Desktop.
import 'dart:async';
void main() {
try {
runZoned(() {
throw Exception('inside');
}, onError: print);
throw Exception('test');
} catch(error) {
print(error);
}
}
//import 'dart:async';
void main() {
try {
runZoned(() {
Future((){
throw Exception('inside');
});
}, onError: print);
Future((){
throw Exception('outside');
});
} catch(error) {
print(error);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment