Created with <3 with dartpad.dev.
Last active
October 3, 2022 18:53
-
-
Save dnys1/4eb15f7849417ed2b15ec9347e82c592 to your computer and use it in GitHub Desktop.
neapolitan-marble-4335
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
void main() async { | |
final future = Future.error('error'); | |
try { | |
await future; | |
} catch (e) { | |
print('Caught $e'); | |
} | |
try { | |
await future; | |
} catch (e) { | |
print('Caught $e again'); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment