Last active
May 29, 2020 18:57
-
-
Save kdmatrosov/e4b3d30fa56d017ef8b74967c755c7cf to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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