Skip to content

Instantly share code, notes, and snippets.

@madmag77
Created March 5, 2021 09:58
Show Gist options
  • Save madmag77/5433a6eef6293ff0b3c88b2755cba2c1 to your computer and use it in GitHub Desktop.
Save madmag77/5433a6eef6293ff0b3c88b2755cba2c1 to your computer and use it in GitHub Desktop.
[Dart article] Guarded zones 1
runZonedGuarded((){
Timer.run(() {
print('Timer runs.');
throw Exception('[Timer] Bad thing happens!');
});
print('Everything is fine!');
}, (e,s) {
print('Exception handled $e, \n$s');
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment